Skip to content

Conversation

ygist
Copy link

@ygist ygist commented May 24, 2024

To fix an issue where calendar widget's masked date caret position is wrong on shadowDOM

CalendarWidget extends Element and uses setInputMask. setInputMask needs shadowRoot for text-mask to work properly. #3693 previous fixed the text-mask for other inputs, but the fix does not appear to work for the CalendarWidget because it does not have a (WebForm) root.

Relates to https://github.com/text-mask/text-mask/pull/1034/files

https://formio.atlassian.net/browse/FIO-1217

To fix an issue where calendar widget's masked date caret position is wrong on shadowDOM

CalendarWidget extends Element and uses setInputMask. setInputMask needs shadowRoot for text-mask to work properly. formio#3693 previous fixed the text-mask for other inputs, but the fix does not appear to work for the CalendarWidget because it does not have a (WebForm) root.

Relates to https://github.com/text-mask/text-mask/pull/1034/files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants