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

Fix for [Modal] Prevent modal actions buttons from clicking twice #4479 #4933

Closed
wants to merge 2 commits into from

Conversation

ob6160
Copy link

@ob6160 ob6160 commented Jan 22, 2017

Problem is described here: #4479

Adds a check for whether the modal is animating before firing the approve event. (Line 212)

Additionally adds a check for the show function in order to ensure that the modal is not animating and is not active before allowing it to be shown again. (Line 311)

@jlukic
Copy link
Member

jlukic commented Mar 13, 2017

I've added a slightly different solve that only specifically changes behavior when onApprove or onDeny callbacks are used. The changes to show would cause issues for anyone who expects show to reshow a modal while the current one is hiding.

I appreciate the code nonetheless.

91dfe87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants