Skip to content

Commit

Permalink
perf: boxType exclude prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZhanMing committed Jun 18, 2022
1 parent b9d7bd4 commit 1793e5e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/components/message-box/src/index.vue
Expand Up @@ -335,11 +335,7 @@ export default defineComponent({
() => visible.value,
(val) => {
if (val) {
if (
props.boxType === '' ||
props.boxType === 'alert' ||
props.boxType === 'confirm'
) {
if (props.boxType !== 'prompt') {
focusStartRef.value = confirmRef.value?.$el ?? rootRef.value
}
state.zIndex = nextZIndex()
Expand Down

0 comments on commit 1793e5e

Please sign in to comment.