calcite-flow-item close button not setting closed when wrapped in custom element #9714
Closed
2 of 6 tasks
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Map Viewer
Issues logged by ArcGIS Map Viewer team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 2
Small fix or update, may require updates to tests.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
Milestone
Check existing issues
Actual Behavior
I found a calcite issue with the flow-items wrapped in custom elements.
.../mapviewer/index.html?url=https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/2
Ask me for a R1 link.
Open the labels panel on the right. Then go to the DOM and find the flow-item and panel and watch these.
Now click the close button on the panel. Calcite sets the panel to closed but doens't change the flow-item element.
Now do the same on the left side with the legend panel. In this case calcite sets closed on both the panel and flow-item.
The difference between the 2 cases is that on the right is uses custom elements around the flow-item and on the left it does not.
The problem is now how would I un-close the panel inside the shadow DOM.
This is not a new problem, at least 6 months old, we only discovered it now.
cc @driskull
Expected Behavior
close prop gets set on both the flow-item and panel when hitting the Close button, even for flow-items wrapped in custom elements.
Reproduction Sample
https://codepen.io/driskull/pen/xxNNLqv?editors=1000
Reproduction Steps
Reproduction Version
2.8.6
Relevant Info
No response
Regression?
no
Priority impact
impact - p2 - want for an upcoming milestone
Impact
No response
Calcite package
Esri team
ArcGIS Map Viewer
The text was updated successfully, but these errors were encountered: