-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(list, filter): fix sync between list items and filtered data (#10342
) **Related Issue:** #10230 ## Summary - updates Filter to emit `calciteFilterChange` when there are no `filteredItems` - Previously, when text was typed into the filter component but there were no `items`, no event would be emitted. - The doc says `Fires when the filter text changes.`. However, this was not always the case if items were not present. - This was problematic because you wouldn't get an event for filter text changing unless there were items populated. - If items were added later after a text input, you wouldn't have the correct text to filter against. - updates the list to filter when list items are slotted in - add test
- Loading branch information
Showing
4 changed files
with
106 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters