-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
[Package] Components/packages/components/packages/components[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
What problem does this address?
When <FormTokenField/> is used as a dropdown selector, it's natural to collapse the suggestions and hide the input field when a token is selected (like the <select> behavior).
By the way, closing the form is also a good way to inform users that the maximum number of tokens is selected.
What is your proposed solution?
We have two options:
- Create another prop to control this behavior, something like
__experimentalCollapseOnMaxLenghtReach. - Or, set this as the default behavior, when
maxLengthis set. (This may be not realistic because it changes the behavior of the component which many sites are depending on that).
Additional information:
This is suggested by @Aljullu on woocommerce/woocommerce-blocks#6647 (review)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Package] Components/packages/components/packages/components[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.