forked from CGM_Public/pretix_original
[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: {
|
computed: {
|
||||||
frameClasses: function () {
|
frameClasses: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user