Keyboard navigation: Return to opening element after modal close (#20782)

Removed the detroy from the modelContext.
It being destroyed prevented the uui-button getting into focus again after closing the modal.
This commit is contained in:
Mathias Helsengren
2025-11-13 12:55:45 +01:00
committed by GitHub
parent eeda55c06f
commit 714fbf3119

View File

@@ -21,9 +21,7 @@ export class UmbOpenModalController extends UmbControllerBase {
const modalContext = modalManagerContext.open(this, modalAlias, args); const modalContext = modalManagerContext.open(this, modalAlias, args);
return await modalContext.onSubmit().finally(() => { return await modalContext.onSubmit();
this.destroy();
});
} }
} }