Panel calcitePanelClose
event emitted despite beforeClose
failing
#10220
Labels
0 - new
New issues that need assignment.
ArcGIS Field Apps
Issues logged by ArcGIS Field Apps team members.
blocked
This issue is blocked by another issue.
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 - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Check existing issues
Actual Behavior
Given a closable
<calcite-panel>
with abeforeClose
callback that rejects, clicking the panel's close button does not close it. However, the panel still emits acalcitePanelClose
event.Expected Behavior
The panel does not emit a
calcitePanelClose
event if it does not successfully close.Reproduction Sample
https://codepen.io/nwhittaker-esri/pen/RwzqJwV
Reproduction Steps
Reproduction Version
2.12.0
Relevant Info
No response
Regression?
No response
Priority impact
impact - p2 - want for an upcoming milestone
Impact
No response
Calcite package
Esri team
ArcGIS Field Apps
The text was updated successfully, but these errors were encountered: