1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-13 11:17:26 +02:00
unleash.unleash/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints
Thomas Heartman 77d72ce5a1
Stop "add values" from closing on adding a value (#9815)
Instead of closing the "add values" popover when you add a value, we now
keep it open to facilitate rapid entry of multiple values. It already
clears successfully and adds the new value to the list, so it's actually
quite smooth to use from just the keyboard now!

Additionally, I propose using a `form` element for the add values
popover, because it really is just a tiny form. This also allows us to
use regular form handling instead for submission instead of checking
what key the user pressed. It also means we don't need to specify the
action in the button, because the form handles it.

There's a few more things fixed: 
- I've added a label (only visible to screen readers) to the input label
(as per standard a11y guidelines).
- When you add a value by pressing the "add" button, your focus returns
to the input field, so that you can just start typing out the next one.
this is handy if you submit by mouse click or by tabbing to the button
instead of just hitting enter inside the input field.
2025-04-23 09:32:37 +02:00
..
FeatureStrategyConstraintAccordionList refactor: deprecate old ConstraintAccordion and point to new version (#9613) 2025-04-17 11:16:32 +02:00
ConstraintOperatorSelect.tsx fix: import path for formatOperatorDescription (#9791) 2025-04-17 09:43:45 +00:00
EditableConstraint.tsx Use svg icons for case sensitivity button and give it better textual representation (#9808) 2025-04-22 12:25:05 +02:00
EditableConstraintWrapper.tsx Chore(1-3598): new constraint edit design iteration 1 (#9727) 2025-04-09 14:08:04 +02:00
FeatureStrategyConstraints.tsx fix: strategy targeting numeric also check value field (#6774) 2024-04-04 11:48:51 +02:00
ValueList.tsx Stop "add values" from closing on adding a value (#9815) 2025-04-23 09:32:37 +02:00