Skip to content

Commit 09fa920

Browse files
authored
fix(b-form-datepicker): menu focus handling for Firefox and Safari on MacOS (closes #4814) (#4824)
* fix(b-calendar): wrapper focus handling * Move tabindex to menu
1 parent 9dd6f53 commit 09fa920

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/calendar/calendar.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,6 @@ export const BCalendar = Vue.extend({
971971
role: 'application',
972972
tabindex: this.disabled ? null : '0',
973973
'data-month': activeYMD.slice(0, -3), // `YYYY-MM`, mainly for testing
974-
// tabindex: this.disabled ? null : '0',
975974
'aria-roledescription': this.labelCalendar || null,
976975
'aria-labelledby': idGridCaption,
977976
'aria-describedby': idGridHelp,

src/components/form-datepicker/form-datepicker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export const BFormDatepicker = /*#__PURE__*/ Vue.extend({
233233
// Context data from BCalendar
234234
localLocale: null,
235235
isRTL: false,
236-
formatedValue: '',
236+
formattedValue: '',
237237
activeYMD: '',
238238
// Flag to add focus ring to outer wrapper
239239
hasFocus: false,
@@ -555,6 +555,7 @@ export const BFormDatepicker = /*#__PURE__*/ Vue.extend({
555555
attrs: {
556556
id: idMenu,
557557
role: 'dialog',
558+
tabindex: '-1',
558559
'aria-modal': 'false',
559560
'aria-labelledby': idLabel
560561
},

0 commit comments

Comments
 (0)