stable
Clone or download
Read-only
request #21851 : Focus is lost when closing modal
When navigating with the keyboard, if I open and close a modal, focus is lost. This patch makes the focus go back to where it was before opening the modal. Note: For now, it does not work with Flaming Parrot modals, as they use Bootstrap. It should be fixed in another patch. Change-Id: I7ffe984a8d6c4987cd57c247e81dc667dabb0225
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/testplan/scripts/test-plan/src/components/BacklogItems/TestDefinitions/TestDefinitionCardXrefTitle.test.ts | +2 | −2 | Go to diff View file |
M | src/themes/tlp/src/js/dropdowns.ts | +2 | −0 | Go to diff View file |
M | src/themes/tlp/src/js/modal.test.ts | +47 | −0 | Go to diff View file |
M | src/themes/tlp/src/js/modal.ts | +45 | −0 | Go to diff View file |