RobinHerbots / Inputmask

Input Mask plugin

Home Page:https://robinherbots.github.io/Inputmask/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selection position wrong inside shadow root with currency alias

calebdwilliams opened this issue · comments

Using a currency mask inside a shadow root causes the cursor to jump to the end of the input element. This behavior is not present inside light DOM.

I've created a minimal reproduction in JSBin (would have used CodePen, but my work recently blocked access). This example uses the same mask configuration for both light DOM and shadow DOM examples to illustrate the difference in behavior.

  • OS: MacOS Ventura 13.4.1
  • Browser: Chrome, Firefox, Safari
  • Inputmask version: 5.0.8