Open sagewall opened 2 months ago
I think for this use case we can maybe introduce a filter method that a user can call when they need to do so. What do you think @jcfranco?
As a workaround the above can currently be achieved by removing and re-creating the element.
Sorry, I was just looking at this again and it looks like the property changes I'm making to the list item in the JavaScript code are not reflected in the DOM. Only the table elements inside the shadow DOM seem to be updated. The calcite list item element shows the old property values. I was looking at the wrong element when I wrote the issue. I'll update the description up top.
They are being updated, they are just not reflected to attributes. The properties are updated.
Check existing issues
Actual Behavior
If a list-item's
label
,value
, ordescription
properties are modified after a list is filtered, the renamed list item is still present in the list.Expected Behavior
The list item who's properties were modified and no longer are matched by the
filterText
are filtered from the list.Reproduction Sample
https://codepen.io/sagewall/pen/LYKrKWY
Reproduction Steps
Reproduction Version
2.12.0
Relevant Info
Independent of browser or operating system
Regression?
N/A
Priority impact
impact - p2 - want for an upcoming milestone
Impact
Impacts the Map Viewer team when users rename layer's and tables in filtered lists.
Calcite package
Esri team
ArcGIS Map Viewer