calcite-dialog: setting focusTrapEnabled by default isn't working #12279
Labels
0 - new
New issues that need assignment.
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.
estimate - 3
A day or two of work, likely requires updates to tests.
has workaround
Issues have a workaround available in the meantime.
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
Uh oh!
There was an error while loading. Please reload this page.
Check existing issues
Actual Behavior
If I create a dialog with focusTrapEnabled by default it doesn't seem to work. If I then open a popover and click outside the popover it is no longer reacting.
If I set focusTrapEnabled on the dialog about 1 second after it was added to the DOM then it works fine.
Same if I edit the DOM by hand and add/re-add focusTrapEnabled on the dialog.
cc @driskull
Expected Behavior
focusTrapEnabled takes effect immediately when the dialog is opened.
Reproduction Sample
https://codepen.io/afreitag/pen/ByNLEMK
Reproduction Steps
Click on button, click on list, works fine.
Now click outside the popover once and come back to list, no longer focuses on the list.
Now enabled commented out code and do the same test. Now it works.
Reproduction Version
3.2.1
Relevant Info
No response
Regression?
probably
Priority impact
impact - p1 - need for current milestone
Impact
popover inside a dialog can get unresponsive
Calcite package
Esri team
ArcGIS Map Viewer
The text was updated successfully, but these errors were encountered: