Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message-box: fix multiple messagebox with duplicate title #10126

Merged
merged 1 commit into from
Mar 13, 2018

Conversation

Pochodaydayup
Copy link
Contributor

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow Element's contributing guide (中文 | English | Español).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

Fix when multiple messagebox with duplicate title, for-example, the first one has title option, but the second one hasn't, and click the first one then the second one has the first title.
[jsfiddle] (https://jsfiddle.net/maj51e8z/3/)

@@ -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 || title !== undefined">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

title !== null || title !== undefined always returns true regardless of what title is. I think it should be title !== null here.

@Pochodaydayup
Copy link
Contributor Author

OK, changed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants