Skip to content

Commit

Permalink
fix(backdrop): disable tap longer after backdrop close
Browse files Browse the repository at this point in the history
To prevent unwanted clicks from happening, such as an input getting
focus after clicking “OK” on a popup, keep the backdrop visible for a
longer period of time. The simulated click is what closes the popup’s
backdrop, but the native click will still happen 300ms later, which may
cause another input to receive focus. Closes #1536
  • Loading branch information
adamdbradley committed Aug 5, 2014
1 parent 06086ee commit 7faeeda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/angular/service/backdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function($document) {
el.removeClass('active');
setTimeout(function() {
!backdropHolds && el.removeClass('visible');
}, 100);
}, 400);
}
}

Expand Down

1 comment on commit 7faeeda

@frissonlabs
Copy link

Choose a reason for hiding this comment

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

I don't believe this fix will work when the input is in a modal and the popup is right over the open modal, since the backdrop doesn't affect it. At least it didn't work for me.

Please sign in to comment.