-
Notifications
You must be signed in to change notification settings - Fork 914
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: listen to
touchstart
events for outside click.
This allows us to dismiss dropdown panel when touching elements outside the selection menu on touch-enabled devices such as phones. Use `fromEvent` instead of `fromEventPattern` so the event handlers are (automatically) unregistered when the stream is unsubscribed. See https://rxjs-dev.firebaseapp.com/api/index/function/fromEvent#description.
- Loading branch information
Showing
2 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters