Skip to content

[ModernTaxonomyPicker] - Adding a new term adds the term to the parent level, but not to the child level. #1911

Open
@NishkalankBezawada

Description

@NishkalankBezawada

[ ] Enhancement

[x] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ v3.19.0 & In dev branch as well]

If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.

Expected / Desired Behavior / Question

While adding a new term using ModernTaxonomy Picker, the newly added term should be added as a child to its parent.

Observed Behavior

While adding a new term using ModernTaxonomy Picker, the newly added term is adding to the parent level as below.

Untitled+video+(16)

If the panel is refreshed, the newly added term is properly set unders its parent.

Steps to Reproduce

I was implementing Adding new terms in ModernTaxonomyPicker control for a client as below, using the advanced example as mentioned in the documentation

image

where updateTaxonomyTreeViewCallback implements to refresh the panel with the newly created term.
The newly created term is created, and shows at the parent level which it should not.

Note

I will be happy to send in the PR for this, as the client needs this functionality.

Thanks!
Nishkalank

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions