[List] filterText
and filterEnabled
not initializing properly on load
#6523
Labels
4 - verified
Issues that have been tested, confirmed as mitigated, and are ready to close.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
Calcite (dev)
Issues logged by Calcite developers.
impact - p1 - need for current milestone
User set priority impact status of p1 - need for current milestone
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Actual Behavior
The
list
component'sfilterEnabled
andfilterText
are not performing as-expected on initialization, where:When a
filterText
value is added on initialization, all childlist-item
s are hidden.Additionally, when
filterEnabled
istrue
on initialization a console message is displayed:Expected Behavior
On initialization:
filter-text
should depict the correct childlist-item
elementsfilter-enabled
should not load a console messageReproduction Sample
https://codepen.io/geospatialem/pen/BaOLpbN
Reproduction Steps
"No data was passed to the filter function. The data argument should be an array of objects"
list-item
s are present when afilter-text
value is entered during initializationfilter-text
value and observe alllist-item
s presentfilter-text
value in the input and observelist-item
s will filter as the text is enteredReproduction Version
1.0.7
Relevant Info
We had a similar fix with #4207, which could be a similar solution to mitigate. cc @jcfranco
Regression?
No response
Priority impact
p1 - need for current milestone
Impact
No response
Esri team
Calcite (dev)
The text was updated successfully, but these errors were encountered: