We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
场景: 用户点击某提交按钮,弹出confirm窗口。用户确认信息后点击【确认】按钮,此时执行【确认】按钮的回调事件,同时confirm执行hide()方法。 如果回调事件内要弹出alert窗口,但是此时confirm窗口的hide()还未执行完毕,所以导致alert无法弹出
1.建议在hide()方法添加一个回调事件的传参,可以在hide()完成后执行。 2.或者只允许 alert/confirm/dialog 同时只存在一个。(即允许同时存在一个alert,一个aconfirm,一个dialog。但是不允许同时存在两个alert。)
The text was updated successfully, but these errors were encountered:
这里倾向于第一种方案,下个小版本优化
Sorry, something went wrong.
fix hide没有回调的问题 #47
1b5cde3
这里v1.1.1 优化了
No branches or pull requests
场景:
用户点击某提交按钮,弹出confirm窗口。用户确认信息后点击【确认】按钮,此时执行【确认】按钮的回调事件,同时confirm执行hide()方法。 如果回调事件内要弹出alert窗口,但是此时confirm窗口的hide()还未执行完毕,所以导致alert无法弹出
1.建议在hide()方法添加一个回调事件的传参,可以在hide()完成后执行。
2.或者只允许 alert/confirm/dialog 同时只存在一个。(即允许同时存在一个alert,一个aconfirm,一个dialog。但是不允许同时存在两个alert。)
The text was updated successfully, but these errors were encountered: