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
{{ message }}
Repository navigation
[All EUI form controls] Browser validity messages should automatically populate EuiFormRow errors #6802
EuiFieldNumber currently shows an icon when :invalid as determined by browsers (e.g. below min, above max, outside step, etc.) but does not offer any additional messaging aside from that. This is particularly problematic for browsers such as Safari which do not expose the validity message whatsoever, even in a mouseover tooltip. This is also problematic for screen reader users, who do not have access to the browser validity messages whatsoever.
Architecturally, we'll want to solve this at a DRYer level:
We should pull browser validity detection out from being EuiFieldNumber and instead make it reusable logic that lives within EuiValidatableControl
Multiple components will benefit from browser validition - min and max length also apply to text inputs, other inputs can have native browser regexs, e.g. email/password fields
We should create a BrowserValidity context that comes from a parent wrapping <EuiFormRow> that allows children to pass back up errors to be displayed (e.g. setBrowserErrors).
These errors should be concatenated with any consumer-set errors (as opposed to overriding them) by default.
We should add a showBrowserErrors flag (that defaults to true, but can be turned off with false) that allows hiding browser errors entirely (in case consumers want to control/provide their own errors).
We should provide an onBrowserInvalid callback to consumers as well for extra flexibility.
For standalone inputs outside EuiFormRow, we may want to consider detecting that the setBrowserErrors API doesn't exist, and fall back to displaying a tooltip around the invalid icon.
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.
Closing this old issue as it has gone stale and we're highly unlikely to get to it. Feel free to re-open it if you feel it is still important. Otherwise, it will remain in this repository as closed for archival purposes.
Activity
github-actions commentedon Nov 20, 2023
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.
github-actions commentedon Sep 24, 2024
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.
cee-chen commentedon Dec 13, 2024
Another validation feature also possibly worth investigating at the same time: #7420
github-actions commentedon Sep 22, 2025
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.
JasonStoltz commentedon Dec 15, 2025
Closing this old issue as it has gone stale and we're highly unlikely to get to it. Feel free to re-open it if you feel it is still important. Otherwise, it will remain in this repository as closed for archival purposes.