Skip to content

Commit 5f2e9dd

Browse files
authored
Update form-timepicker.js
1 parent d42ab15 commit 5f2e9dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/form-timepicker/form-timepicker.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,11 @@ export const BFormTimepicker = /*#__PURE__*/ Vue.extend({
245245
},
246246
mounted() /* istanbul ignore next: until tests written */ {
247247
this.$on('shown', () => {
248-
try {
249-
this.$refs.time.focus()
250-
} catch {}
248+
this.$nextTick(() => {
249+
try {
250+
this.$refs.time.focus()
251+
} catch {}
252+
})
251253
})
252254
},
253255
methods: {

0 commit comments

Comments
 (0)