kibana/x-pack/plugins/enterprise_search/public
Constance 07bd76c2a3
[App Search] Result Settings: Max size input fixes (#104755)
* Fix "Max size" number inputs cutting off the "No limit" placeholder text on Chrome/webkit

- textOnly={false} is required for the input to expand in width

* Fix handleFieldNumberBlur behavior:
- should allow setting a number field back to empty/no limits

- dev note: '' is the blank/empty state, which gets parsed to NaN. Random invalid strings ALSO get parsed to '', which is NaN

* Fix input not clearing invalid non-number strings

For some really odd reason, '' and undefined aren't correctly resetting the input value when a string gets entered into the input. I had to add a space for EUI to actually start clearing it

Note that this change completely prevents users from writing non-numbers into the input at all, but this is probably fine/valid honestly
2021-07-08 08:58:59 -07:00
..
applications [App Search] Result Settings: Max size input fixes (#104755) 2021-07-08 08:58:59 -07:00
index.ts [Enterprise Search] Add eslint import/order rules (#90530) 2021-02-09 09:33:39 -08:00
plugin.ts [Workplace Search] Add Account Settings page imported from Security plugin (#99791) 2021-06-10 14:20:30 -03:00