Dialog - escapeDisabled prevents all text edits #10337
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Online
Issues logged by ArcGIS Online 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 - 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
Adding
escapeDisabled: true
to thecalcite-dialog
component will prevent text from being entered in any editable component (input, text-area, etc.).Expected Behavior
escapeDisabled: true
should prevent the dialog only from closing when the Escape key is pressed. It should not affect text inputs in other areas.Reproduction Sample
https://codepen.io/iyouth66/pen/dyBBdMj?editors=1100
Reproduction Steps
calcite-text-area
componentReproduction Version
2.11.0
Relevant Info
I see this
handlePanelKeyDown
method which appears to block all key presses from having any effect ifescapeDisabled
istrue
: https://github.com/Esri/calcite-design-system/blob/dev/packages/calcite-components/src/components/dialog/dialog.tsx#L799.Regression?
No response
Priority impact
impact - p1 - need for current milestone
Impact
Needed for any migration from
calcite-modal
tocalcite-dialog
.Calcite package
Esri team
ArcGIS Online
The text was updated successfully, but these errors were encountered: