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

$emit in confirm dialog invalid #10829

Closed
xzwilliam opened this issue Nov 15, 2019 · 1 comment
Closed

$emit in confirm dialog invalid #10829

xzwilliam opened this issue Nov 15, 2019 · 1 comment

Comments

@xzwilliam
Copy link

Version

2.6.10

Reproduction link

Steps to reproduce

parent code
<do-more @onreloadtab="reloadTab" :selectFolder="selectFolder">
methods: {
reloadTab:function(){
console.log('reload')
}
}

child code
.....
methods: {
async delete (row) {
let that = this
await this.$confirm("Are you sure to delete?", "confirm")
.then((config) => {
that.$emit('onreloadtab')
return
})
.catch(() => {
});
}

What is expected?

I tried to get the request sent by the child page from the parent page, but it was unsuccessful

What is actually happening?

why parent cannot get emit message

@posva
Copy link
Member

posva commented Nov 15, 2019

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.

@posva posva closed this as completed Nov 15, 2019
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

No branches or pull requests

2 participants