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

Action required for cancel button #5

Open
westcode opened this issue Jul 23, 2019 · 1 comment
Open

Action required for cancel button #5

westcode opened this issue Jul 23, 2019 · 1 comment

Comments

@westcode
Copy link

It would be nice if the documentation included that an action needs to be used for all buttons otherwise a secondary alert will not be shown (cause of the preventNestedAlerts thinking an alert is still open).

E.g. this will not show a second alert (but will close the alert properly):
{
text: I18n.t("no"),
style: "cancel"
}

An empty call statement is a work around:
{
text: I18n.t("no"),
style: "cancel",
call: {
method: () => {}
}
}

@riadeveloper
Copy link

Big thanks for this comment.

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