Skip to content

Commit

Permalink
fix: dialog call mounted multiple times #152
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Sep 11, 2018
1 parent 85a9aca commit 4df8e37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/vc-dialog/Dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export default {
let footer
if (tempFooter) {
footer = (
<div class={`${prefixCls}-footer`} ref='footer'>
<div key='footer' class={`${prefixCls}-footer`} ref='footer'>
{tempFooter}
</div>
)
Expand All @@ -212,7 +212,7 @@ export default {
let header
if (title) {
header = (
<div class={`${prefixCls}-header`} ref='header'>
<div key='header' class={`${prefixCls}-header`} ref='header'>
<div class={`${prefixCls}-title`} id={this.titleId}>
{title}
</div>
Expand Down Expand Up @@ -252,6 +252,7 @@ export default {
{closer}
{header}
<div
key='body'
class={`${prefixCls}-body`}
style={bodyStyle}
ref='body'
Expand Down

0 comments on commit 4df8e37

Please sign in to comment.