mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
[A11y] Widget: move dialog-focus to close-button (#5221)
This commit is contained in:
committed by
GitHub
parent
9f49b7747c
commit
80148a8435
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user