File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import BVTransition from '../../utils/bv-transition'
99import KeyCodes from '../../utils/key-codes'
1010import observeDom from '../../utils/observe-dom'
1111import { BTransporterSingle } from '../../utils/transporter'
12- import { from as arrayFrom } from '../../utils/array'
12+ import { arrayIncludes } from '../../utils/array'
1313import { isBrowser } from '../../utils/env'
1414import { isString , isUndefinedOrNull } from '../../utils/inspect'
1515import { 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
You can’t perform that action at this time.
0 commit comments