Open
Description
-
Feature Description
Currently, if we press ctrl+z nothing happens, in every text input we have this feature, especially come handy when we
paste wrong otp.. -
Preferred Solution
- Needed to create Globale undo Stack to store all values.
- Create keydown event for ctrl + z, that pop out element from undostack and set new value.
- Code contains method handleOtpChange inside that push (this.props.value) every time it triggers.
Tried to implement this algorithim and also initiating PR in a while.