Skip to content

Commit

Permalink
MessageBox: fix multiple instances with duplicate title (#10126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pochodaydayup authored and Leopoldthecoder committed Mar 13, 2018
1 parent 9f09bd3 commit 6ccca79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/message-box/src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const defaults = {
title: undefined,
title: null,
message: '',
type: '',
showInput: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/message-box/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:aria-label="title || 'dialog'"
>
<div class="el-message-box" :class="[customClass, center && 'el-message-box--center']">
<div class="el-message-box__header" v-if="title !== undefined">
<div class="el-message-box__header" v-if="title !== null">
<div class="el-message-box__title">
<div class="el-message-box__status" :class="[ typeClass ]" v-if="typeClass && center"></div>
<span>{{ title }}</span>
Expand Down

0 comments on commit 6ccca79

Please sign in to comment.