formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.83k stars 1.04k forks source link

FIO-1217 fix shadowRoot for CalendarWidget #5616

Open ygist opened 1 month ago

ygist commented 1 month ago

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/formio.js#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