A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/332b79f below:

fix scroll to top issue when modal has `no-fade` set (#4004) · bootstrap-vue/bootstrap-vue@332b79f · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+6

-3

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+6

-3

lines changed Original file line number Diff line number Diff line change

@@ -775,11 +775,14 @@ export const BModal = /*#__PURE__*/ Vue.extend({

775 775

: autoFocus === 'close' && close

776 776

? close.$el || close

777 777

: content

778 -

// Make sure top of modal is showing (if longer than the viewport)

778 +

// Focus the element

779 +

attemptFocus(el)

779 780

if (el === content) {

780 -

modal.scrollTop = 0

781 +

// Make sure top of modal is showing (if longer than the viewport)

782 +

this.$nextTick(() => {

783 +

modal.scrollTop = 0

784 +

})

781 785

}

782 -

attemptFocus(el)

783 786

}

784 787

})

785 788

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4