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

HxListLayout - When a chip is removed, chip generated by descendant of HxAutosuggest is also removed #983

Open
StanleyCZ opened this issue Jan 10, 2025 · 0 comments

Comments

@StanleyCZ
Copy link

On the page where I use HxListLayout, I use the LoginAccountPicker component (a descendant of HxAutosuggest) in the FilterTemplate.
image

The purpose of LoginAccountPicker is to call the api for prompting users as shown bellow:
image

After applying the filter, a list of Chips is generated. However, as soon as I remove any chip other than the one generated from the LoginAccountPicker from the list, this chip is also removed from the list, although the value in the filter still remains.

I tried modifying the ResolveAutosuggestItemFromValue function so that I didn't retrieve the data asynchronously and didn't use await (I just read it from the mocked list memory), but the result was the same.

While debugging this issue, I also discovered that the HxListLayout lifecycle is repeatedly creating new LoginAccountPicker components. Maybe this could be the problem?

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