[A11y] Widget: move dialog-focus to close-button (#5221)

This commit is contained in:
Richard Schreiber
2025-06-10 20:39:43 +02:00
committed by GitHub
parent 9f49b7747c
commit 80148a8435

View File

@@ -903,6 +903,14 @@ Vue.component('pretix-overlay', {
}
}
},
'$root.frame_shown': function (newValue) {
if (newValue) {
var btn = this.$el?.querySelector('.pretix-widget-frame-close button');
this.$nextTick(function() {
btn.focus();
});
}
},
},
computed: {
frameClasses: function () {