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
<sp-theme theme="spectrum" color="light" scale="medium" style="background-color: var(--spectrum-global-color-gray-100)"> <sp-textfield id="field1" required></sp-textfield> </sp-theme>
In the above example as I have added the required constraint on sp-textfield, on page load I see that spectrum adds an "invalid" attribute to this field and a red border and alert-icon are rendered.
As I want to add my own validation, how I can disable this default validation provided by spectrum? @Westbrook
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
<sp-theme theme="spectrum" color="light" scale="medium" style="background-color: var(--spectrum-global-color-gray-100)"> <sp-textfield id="field1" required></sp-textfield> </sp-theme>
In the above example as I have added the required constraint on sp-textfield, on page load I see that spectrum adds an "invalid" attribute to this field and a red border and alert-icon are rendered.
As I want to add my own validation, how I can disable this default validation provided by spectrum?
@Westbrook
Beta Was this translation helpful? Give feedback.
All reactions