You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right click the first field in the preview, and click "Paste"
Expected: No errors in developer tools console.
Actual: There's a console error:
cleave-react.min.js:8 Uncaught TypeError: Cannot read properties of undefined (reading 'slice')
In some initial debugging, it seems to be due to the fact that onChange calls Util.getPostDelimiter with owner.lastInputValue, but lastInputValue is undefined when first initialized. No errors are logged if you paste with keyboard (CmdV), but only because the combination of key presses incurs preceding keydown events which would ensure lastInputValue is assigned by the time onChange is invoked.
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
1234
Expected: No errors in developer tools console.
Actual: There's a console error:
In some initial debugging, it seems to be due to the fact that
onChange
callsUtil.getPostDelimiter
withowner.lastInputValue
, butlastInputValue
isundefined
when first initialized. No errors are logged if you paste with keyboard (CmdV), but only because the combination of key presses incurs precedingkeydown
events which would ensurelastInputValue
is assigned by the timeonChange
is invoked.The text was updated successfully, but these errors were encountered: