OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[64472] Focus should return to trigger element on closing attribute help text dialog (#19494)
Behrokh Satarnejad31a3f60e0923
diff --git a/frontend/src/stimulus/controllers/async-dialog.controller.ts b/frontend/src/stimulus/controllers/async-dialog.controller.tsindex 66b02f2c434..e8ff7561b58 100644--- a/frontend/src/stimulus/controllers/async-dialog.controller.ts+++ b/frontend/src/stimulus/controllers/async-dialog.controller.ts@@ -34,13 +34,20 @@ import { TurboHelpers } from '../../turbo/helpers';export default class AsyncDialogController extends ApplicationController {connect() {- this.element.addEventListener('click', (e) => {- e.preventDefault();+ this.element.addEventListener('click', (event:MouseEvent) => {+ event.preventDefault();this.triggerTurboStream();});++ this.element.addEventListener('keydown', (event:KeyboardEvent) => {+ if (event.key === 'Enter' || event.key === ' ') {+ event.preventDefault();+ this.triggerTurboStream();+ }+ });}- triggerTurboStream():void {+ private triggerTurboStream():void {TurboHelpers.showProgressBar();void fetch(this.href, {