LabeledSelect: Show tag prompts only if select is searchable #13073
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #6946
when there were no options, the prompt text
start typing to delete an item
would appear even if the select was not searchable.Occurred changes and/or fixed issues
Technical notes summary
The
showTagPrompts
was introduced in PR#12350Ref: https://github.com/rancher/dashboard/pull/12350/files#diff-5316c4da698262a356a5f70f02f4d94b95c66b780cedf9cb04515deb011017d8R148-R151
Areas or cases that should be tested
Verify the prompt text only appears when:
Areas which could experience regressions
Prompt display behavior in
LabeledSelect
component when there are no optionsScreenshot/Video
Show
No options
if the select was not searchableChecklist