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
I'd like the pattern attribute like HTML input element does. It has a validation pattern so that it can check whether the input value match the pattern such as email, url, number only, etc.
Expected behavior
It it better to check in change event and has a default style when the input value does not match the pattern.
I can do it by myself, but it is a little cumbersome.
Current behavior
I have tried the type attribute. When type="email" or type="tel", I can still input any text into the control.
The text was updated successfully, but these errors were encountered:
Feature request
I'd like the
pattern
attribute like HTMLinput
element does. It has a validation pattern so that it can check whether the input value match the pattern such as email, url, number only, etc.Expected behavior
It it better to check in
change
event and has a default style when the input value does not match the pattern.I can do it by myself, but it is a little cumbersome.
Current behavior
I have tried the
type
attribute. Whentype="email"
ortype="tel"
, I can still input any text into the control.The text was updated successfully, but these errors were encountered: