PR #2590 - Fixes #2589 Detail mode in ticket article view is incorrectly triggered when single-click de-selecting a text selection

This commit is contained in:
Martin von Wittich 2019-05-24 16:02:25 +02:00 committed by Mantas Masalskis
parent 615c4b4c64
commit b112ea68a9

View file

@ -348,6 +348,11 @@ class ArticleViewItem extends App.ObserverController
# by adding a delay to the toggle
delay = 300
article = $(e.target).closest('.ticket-article-item')
if @elementContainsSelection(article.get(0))
@stopPropagation(e)
return false
if @lastClick and +new Date - @lastClick < delay
clearTimeout(@toggleMetaTimeout)
else