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: Include check for separator while filtering path of terms when anchorId is configured #625

Merged
merged 1 commit into from
Jul 31, 2020

Conversation

devangbhavsar89
Copy link

@devangbhavsar89 devangbhavsar89 commented Jul 30, 2020

Q A
Bug fix? [x]
New feature? [ ]
New sample? [ ]

What's in this Pull Request?

Bug fix related to anchorId configuration inside TaxonomyPicker control - When anchorId is used with TaxonomyPicker control, and if there exists any other term (that is not as a child of anchor term and it starts with same name as the anchor term name), then that term becomes available in the terms listing. It should not be listed because it is not a child term.

Bug Description

Say, we have hierarchy of terms in the term store as follows:
image

Now if we configure TaxonomyPicker control to use "Helsinki" as anchorId, then TaxonomyPicker control shows results as follows:

  1. While picking term from hierarchy listing
    image

  2. While filtering terms via. type-in
    image

If we check the hierarchy of terms inside the term store, then "Helsinki, Espoo, Vantaa" is not a child term of "Helsinki". So ideally, it should not be listed/populated inside our control.

This PR fixes above mentioned issue of TaxonomyPicker control.

@estruyf estruyf merged commit ef74ed1 into pnp:dev Jul 31, 2020
@estruyf
Copy link
Member

estruyf commented Jul 31, 2020

Thanks @devangbhavsar89 - this is merged and will soon be available as a beta.

@estruyf estruyf mentioned this pull request Sep 9, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants