Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use preventDefault in _onExpandable handler. Fixes #2484
On some touch devices and in certain contexts, a touch event can trigger a second mouse event, causing expandable cards to close as soon as they open. Follows advice from http://www.html5rocks.com/en/mobile/touchandmouse/ to "use preventDefault() inside touch event handlers, so the default mouse-emulation handling doesn’t occur." Even though this can prevent "other default browser behavior (like scrolling)", this shouldn't be a danger in the specific context of this handler.
- Loading branch information