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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Idea
As an enhancement on top of the preprocessor from Joren, allow advanced preprocessing (as a 'live formatter' enhancing UX)
1
into01-__-____
20
into20-
,20-4
into20-04
See: https://nosir.github.io/cleave.js/
(But we should enhance the UX when removing from a date (avoid the unexpected 'shift'))
So:
{ previousViewValue = ‘’, currentCaretIndex }
{string | { viewValue:string, caretIndex:number } }
Example for a date (non tested psuedo code)
Beta Was this translation helpful? Give feedback.
All reactions