Skip to content

Commit

Permalink
fix(components): [message-box] the focus error when used ElMessageBox (
Browse files Browse the repository at this point in the history
…#8336)

* fix: issue #8292 MessageBox Customization error focus

* perf: boxType exclude prompt
  • Loading branch information
LinZhanMing committed Jun 19, 2022
1 parent d536b7c commit 9da7564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/message-box/src/index.vue
Expand Up @@ -335,7 +335,7 @@ export default defineComponent({
() => visible.value,
(val) => {
if (val) {
if (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 9da7564

Please sign in to comment.