Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: couldn't select text after dismissing a reaction (#296)
On mobile (touch device more accurately), if you were to open the reaction picker and then dismiss it by clicking outside, you would not be able to select text anymore. That's because sometimes, the `touchEnd` event wouldn't trigger, and we would not remove the `discourse-reactions-no-select` class on the `html` element. In order to fix this, I move the removal of the `discourse-reactions-no-select` class to the `collapseAllPanels` method which is always called when clicking outside. Ref - https://meta.discourse.org/t/opening-and-closing-the-reactions-menu-without-picking-a-reaction-disables-highlighting/287064 NOTE: there are no tests, because I couldn't figure out a reliable enough way to test it.
- Loading branch information