Open pyymenta opened 3 months ago
Any news on that? I'm dealing with a similar issue, however I'm using imask-react with mantine. I'm guessing its internally relying on the onChange event and imask-rect loses all its "Plug and Play" compatability if we have to rely on onAccept
Bug Description I encountered and unexpected behavior with several custom Inputs using
react-imasked
. When attempting to paste a value without a mask, theonChange
callback fails to trigger.I have created a CodePen demo to illustrate this issue:
View Demo
Initially, I attempted to address this by adding an
onPaste
event to invoke the sameonChange
method callback. However, this approach resulted in an empty value being returned:To resolve this, I implemented a workaround using
setTimeout
, which successfully achieved the expected behavior:Despite its effectiveness, the
setTimeout
solution is not ideal. I am reaching out to address this issue and inquire if there is a better way to resolve it. Thank you for your assistance!Steps to Reproduce
Codepen Demo
Expected Behavior The
onChange
event should trigger when pasting a value without a mask.Environment:
Additional Context Include any additional relevant information about the problem here.