-
Notifications
You must be signed in to change notification settings - Fork 735
fix search when passing items #3070
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another issue: the onSearchChange
value
we get is correct, but the children
`items` is from the previous search (it's one search behind).
It does not look like a regression, but you should definitely fix it or add a ticket to fix it.
const itemLabel = getItemLabelPresenter(label, value, childGetItemLabel || getItemLabel); | ||
return _.filter(items, item => { | ||
const {label, value, getItemLabel: childGetItemLabel} = item.props || item; | ||
const itemLabel = getItemLabelPresenter(label, value, getItemLabel || childGetItemLabel); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const itemLabel = getItemLabelPresenter(label, value, getItemLabel || childGetItemLabel); | |
const itemLabel = getItemLabelPresenter(label, value, childGetItemLabel || getItemLabel); |
Description
Picker fix search when using
items
instead ofchildren
.usePickerSearch hook returns filteredItems now.
Changelog
Picker fix search when using
items
instead ofchildren
.Additional info
MADS-4193