🌐 AI搜索 & 代理 主页
Skip to content

Commit 578fd86

Browse files
authored
Update modal.js
1 parent 720cb11 commit 578fd86

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/components/modal/modal.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import BVTransition from '../../utils/bv-transition'
99
import KeyCodes from '../../utils/key-codes'
1010
import observeDom from '../../utils/observe-dom'
1111
import { BTransporterSingle } from '../../utils/transporter'
12-
import { from as arrayFrom } from '../../utils/array'
12+
import { arrayIncludes } from '../../utils/array'
1313
import { isBrowser } from '../../utils/env'
1414
import { isString, isUndefinedOrNull } from '../../utils/inspect'
1515
import { getComponentConfig } from '../../utils/config'
@@ -748,13 +748,14 @@ export const BModal = /*#__PURE__*/ Vue.extend({
748748
// Make sure top of modal is showing (if longer than the viewport)
749749
// and focus the apropriate button or modal content wrapper
750750
const autoFocus = this.autoFocusButton
751-
const el = autoFocus === 'ok' && ok
752-
? ok.$el || ok
753-
: autoFocus === 'cancel' && cancel
754-
? cancel.$el || cancel
755-
: autoFocus === 'close' && close
756-
? close.$el || close
757-
: content
751+
const el =
752+
autoFocus === 'ok' && ok
753+
? ok.$el || ok
754+
: autoFocus === 'cancel' && cancel
755+
? cancel.$el || cancel
756+
: autoFocus === 'close' && close
757+
? close.$el || close
758+
: content
758759
this.$nextTick(() => {
759760
if (el === content) {
760761
modal.scrollTop = 0

0 commit comments

Comments
 (0)