Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TaxonomyPicker] Enhancements #1871

Open
s-KaiNet opened this issue Aug 21, 2024 · 0 comments
Open

[TaxonomyPicker] Enhancements #1871

s-KaiNet opened this issue Aug 21, 2024 · 0 comments

Comments

@s-KaiNet
Copy link
Contributor

Category

[✅] Enhancement

[ ] Bug

[ ] Question

Version

Please specify what version of the library you are using: 3.20.0

Expected / Desired Behavior / Question

  1. The first problem is that in single selection mode (allowMultipleSelections: false) the control doesn't lose focus if you select a term using inline search and not a panel, which is demonstrated below:

2024-08-21_11-08-48

  1. The second issue (an enhancement, actually) is a way of selecting a term in the panel. If the control is in a single selection mode (allowMultipleSelections: false), then you have to click two times to select a term - one to select it and second time to click "Save". But since you cannot select more than one in this case, after selecting the first term we can simply close the panel.

This is how it works now:

2024-08-21_11-12-42

The suggested change (we don't have any Save/Cancel buttons):

2024-08-21_14-06-10

In order not to break existing functionality the idea is to introduce a new property, say simpleSelectionInSingleMode which is false by default. When true (and allowMultipleSelections: false), then the above behaviour will be activated.

If you approve, I will make a PR.

@s-KaiNet s-KaiNet changed the title [TaxonomyPicker] Enhancments [TaxonomyPicker] Enhancements Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant