Skip to content

[TaxonomyPicker] Enhancements #1871

Open
@s-KaiNet

Description

@s-KaiNet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions