Skip to content

Dialog: only destroy slot when destroyOnClose is true#19753

Open
CeceWall wants to merge 1 commit intoElemeFE:devfrom
CeceWall:dev
Open

Dialog: only destroy slot when destroyOnClose is true#19753
CeceWall wants to merge 1 commit intoElemeFE:devfrom
CeceWall:dev

Conversation

@CeceWall
Copy link
Copy Markdown

@CeceWall CeceWall commented Jun 30, 2020

destroyOnClose would destroy and recreate slot when dialog closed, this commit only destroy slot

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

@element-bot
Copy link
Copy Markdown
Member

Deploy preview for element ready!

Built with commit d23c716

https://deploy-preview-19753--element.netlify.app

@imvenj
Copy link
Copy Markdown

imvenj commented Sep 12, 2020

Why this fix is not accepted?
This bug is so annoying!

@vitualizz
Copy link
Copy Markdown

Accept this fix, please :octocat: 🇵🇪

@tenkiller
Copy link
Copy Markdown

Is there any reason this PR has not been addressed for over 6 months?

Copy link
Copy Markdown

@NoraH1to NoraH1to left a comment

Choose a reason for hiding this comment

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

maybe u can move line 133~135 to afterLeave method,then the default slot will destroy after the animation ends

this.$nextTick(() => {
this.key++;
});
this.rendered = false;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

maybe u can move line 133~135 to afterLeave method,then the default slot will destroy after the animation ends

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.

6 participants