Dialog: closable calcite panels placed inside a dialog will close the dialog #10129
Closed
2 of 6 tasks
Labels
4 - verified
Issues that have been released and confirmed resolved.
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 - 3
A day or two of work, likely requires updates to tests.
impact - p1 - need for current milestone
User set priority impact status of p1 - need for current milestone
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
Milestone
Check existing issues
Actual Behavior
When placing a panel inside a dialog and closing the panel, the dialog will be closed.
This is because the dialog listens for the
calcitePanelClose
event to close the dialog. If the event bubbles up, it closes the dialog. The workaround is to stop propagation of thecalcitePanelClose
event.Expected Behavior
I would expect closing internal panels to not close the dialog.
Reproduction Sample
https://codepen.io/fcbasson/pen/YzoazZE
Reproduction Steps
Reproduction Version
2.11.1
Relevant Info
In components that use
calcite-panel
internally and listen to its events, we should make sure the element we are looking for is emitting the events and that any other elements do not trigger any action.Regression?
No response
Priority impact
impact - p1 - need for current milestone
Impact
No response
Calcite package
Esri team
N/A
The text was updated successfully, but these errors were encountered: