-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closing on escape no longer works when focusTrapDisabled=true
#10522
Comments
@geospatialem since this is a regression shouldn't it be in a patch? |
@driskull @jcfranco reminded me that we merged it in with the October milestone, so we just need to address it prior to the launch of |
Updated the impact label accordingly. |
Installed and assigned for verification. |
Verified for the Observed a few behaviors that may need follow-up cc @Elijbet (assigning back to ya to confirm the following):
Note: the full testing suite of components can be accessed at: https://codepen.io/geospatialem/pen/qEWByZz |
This is expected. And
Updated the sample to fit the use case, and it performs as-expected. ✨ Closing out the above as verified. Nice work, @Elijbet! 💪🏻 |
Check existing issues
Actual Behavior
Related issue: #6456
Blocked issues: #10682
There is a regression with the focus-trap stacking PR. Closing on escape no longer works when focusTrapDisabled=true.
It may also affect closing on click in some components.
There is also a related failing test:
@esri/calcite-components:test: ● stacked focus-trap components › closes a stack of open components sequentially in visual order
@esri/calcite-components:test:
@esri/calcite-components:test: expect(received).toBe(expected) // Object.is equality
@esri/calcite-components:test:
@esri/calcite-components:test: Expected: "input-time-picker"
@esri/calcite-components:test: Received: "example-modal"
@esri/calcite-components:test:
@esri/calcite-components:test: 93 | ? "sheet-button"
@esri/calcite-components:test: 94 | : focusTrapOrderElements[i].id || document.body.id;
@esri/calcite-components:test: > 95 | expect(activeElementIdAfterTab).toBe(expectedElementId);
@esri/calcite-components:test: | ^
@esri/calcite-components:test: 96 |
@esri/calcite-components:test: 97 | await page.keyboard.press("Escape");
@esri/calcite-components:test: 98 | await page.waitForChanges();
@esri/calcite-components:test:
@esri/calcite-components:test: at testEscapeAndAssertOpenState (src/tests/stackedFocusTrap.e2e.ts:95:43)
@esri/calcite-components:test: at testStackEscapeSequence (src/tests/stackedFocusTrap.e2e.ts:125:7)
@esri/calcite-components:test: at Object. (src/tests/stackedFocusTrap.e2e.ts:128:5)
Expected Behavior
Components should close on escape when focus-trap is true individually or in a stack.
Reproduction Sample
https://codepen.io/jcfranco/pen/PoMbdMe?editors=100
Reproduction Steps
Reproduction Version
2.13.0
Relevant Info
No response
Regression?
2.12.2
Priority impact
impact - p3 - not time sensitive
Impact
No response
Calcite package
Esri team
Calcite (dev)
The text was updated successfully, but these errors were encountered: