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
Describe the bug
When using IMask.js in a textarea with a regular expression mask, the spelling suggestion behavior the browser gives do not work. The result depends on the browser.
To Reproduce
Go to https://codepen.io/damcard/pen/QWqzpVr. In that example, if you paste the text 'the brown doog jumped over the lazy fox' into the textarea, the browser indicates the word 'doog' is misspelled.
Expected behavior
If you choose 'dog' or 'dogs' as the correction would be to produce the corrected value 'the brown dog jumped over the lazy fox' or 'the brown dogs jumped over the lazy fox' respectively.
Environment:
Depending on the browser (because the suggestion are different based on the browser) I see different results in Windows 10:
Results from Edge (97.0.1072.55 (Official build) (64-bit)): 'the brown dogs'
Results from chrome (97.0.4692.71 (Official build) (64-bit)): 'the brown dogs'
Results from Firefox (95.0.2 (64-bit)): 'the brown dog'
IMask version 6.2.2
Vanilla Javascript/HTML
Additional context
You can cause it to fail in other ways. This is just the one I am focusing on for this ticket. Sometimes if you have two misspelled words or if you type after pasting it will fail differently.
The text was updated successfully, but these errors were encountered:
inside imask only input event is handled. I know there could be some issues with copy/paste, spelling etc. But as long as there is no proper way/standard i do not want to implement and support it. Rather I'd say I can't. Too much work, too low benefits, lot of edge cases in every browser. I gave it up.
Describe the bug
When using IMask.js in a textarea with a regular expression mask, the spelling suggestion behavior the browser gives do not work. The result depends on the browser.
To Reproduce
Go to https://codepen.io/damcard/pen/QWqzpVr. In that example, if you paste the text 'the brown doog jumped over the lazy fox' into the textarea, the browser indicates the word 'doog' is misspelled.
Expected behavior
If you choose 'dog' or 'dogs' as the correction would be to produce the corrected value 'the brown dog jumped over the lazy fox' or 'the brown dogs jumped over the lazy fox' respectively.
Environment:
Depending on the browser (because the suggestion are different based on the browser) I see different results in Windows 10:
Results from Edge (97.0.1072.55 (Official build) (64-bit)): 'the brown dogs'
Results from chrome (97.0.4692.71 (Official build) (64-bit)): 'the brown dogs'
Results from Firefox (95.0.2 (64-bit)): 'the brown dog'
IMask version 6.2.2
Vanilla Javascript/HTML
Additional context
You can cause it to fail in other ways. This is just the one I am focusing on for this ticket. Sometimes if you have two misspelled words or if you type after pasting it will fail differently.
The text was updated successfully, but these errors were encountered: