AlaskaAirlines / auro-input

Custom HTML element for inputting string data in forms

Home Page:https://auro.alaskaair.com/components/auro/input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

auro-input: documentation is incorrect for "required" attribute error messages

ethanwmiller opened this issue · comments

General Support Request

The docs at https://auro.alaskaair.com/components/auro/input#required are incorrect when describing how to add a custom error string on a required field.

What the docs say: "The error message for the valueMissing validityState can be changed to a custom string using the customValidityValueMissing."

However, customValidityValueMissing is incorrect. The actual attribute to use in code is setCustomValidityValueMissing. Seen here in the source code: https://github.com/AlaskaAirlines/auro-input/blob/3e30aa9e302bca440910b6fe9c7d326821b419e5/src/base-input.js#L31C38-L31C38

Possible Solution

Change customValidityValueMissing to setCustomValidityValueMissing in the documentation and include a code example of this being used.

Additional context

No response

Exit criteria

Documentation is corrected.

@Patrick-Daly-AA I have verified and validated this issue!