Support for Web Components with angular-imask #1092
Unanswered
Paramesh98
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using
angular-imaskin an Angular project. It works seamlessly with native HTML input elements. However, when I try to use it with web components, specifically Adobe's Spectrum Web Components (sp-textfield), the mask does not apply. The mask is not applied, likely due to shadow DOM encapsulation.Example Code:
Working Code
<input [formControl]="firstName" [imask]="{ mask: '00000', lazy: false, override: true }" />Non working code
Beta Was this translation helpful? Give feedback.
All reactions