We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no-fade
1 parent 3aa78fd commit 332b79fCopy full SHA for 332b79f
src/components/modal/modal.js
@@ -775,11 +775,14 @@ export const BModal = /*#__PURE__*/ Vue.extend({
775
: autoFocus === 'close' && close
776
? close.$el || close
777
: content
778
- // Make sure top of modal is showing (if longer than the viewport)
+ // Focus the element
779
+ attemptFocus(el)
780
if (el === content) {
- modal.scrollTop = 0
781
+ // Make sure top of modal is showing (if longer than the viewport)
782
+ this.$nextTick(() => {
783
+ modal.scrollTop = 0
784
+ })
785
}
- attemptFocus(el)
786
787
})
788
0 commit comments