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

[PickerInput]: can't select items if datasource api return list only if search is typed #2651

Open
AlekseyManetov opened this issue Nov 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@AlekseyManetov
Copy link
Collaborator

Description (optional)

If datasource api configured in a such way when api return items only when search is typed, if not - api return empty array. In this case item check became broken, check is not react on click.

It seams that issue related to the DataSource tree load behavior - if search is typed we load items only in visible tree, but checking work based on full tree, which is empty because when search is empty we return empty list.

Steps to Reproduce

  1. Open sandbox - https://codesandbox.io/p/sandbox/uui-forked-z4cm8w?file=%2FExample.tsx%3A10%2C42&workspaceId=1dc5a6c7-6fb2-4cae-8ed5-c1bd7e6e64f0
  2. Type to search more than 3 symbols
  3. Try to check item

Actual result

Item isn't checked

Expected result

Item became checked

Environment

  • UUI version: 5.11.0
@AlekseyManetov AlekseyManetov added the bug Something isn't working label Nov 21, 2024
@cpoftea
Copy link
Contributor

cpoftea commented Nov 21, 2024

Clone #2565

@AlekseyManetov
Copy link
Collaborator Author

@cpoftea Thank you for your attentiveness.
I will close the previous one since this one contains more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants