about summary refs log tree commit diff
path: root/app/assets/javascripts/application.js
diff options
context:
space:
mode:
authorMisty De Meo <mistydemeo@gmail.com>2017-01-22 22:57:58 -0800
committerMisty De Meo <mistydemeo@gmail.com>2017-01-22 22:57:58 -0800
commit33fd8a7d95034069a4c31bec31be2feb609709e4 (patch)
treef781997d81aeb99cdeebc597dc245acc886e79ba /app/assets/javascripts/application.js
parent1953e3b6ed255870d46915db3d910345c230f076 (diff)
Textarea: fix clicking on name suggestions
This was broken in c3e9ba6a, which added an onBlur to hide the
suggestions when the textarea loses focus. Unfortunately, this fired
even when the textarea lost focus to its own suggestions box, and that
meant that onSuggestionClick is never called.

Setting a short window in which onSuggestionClick can still happen
before hiding the suggestion area ensures that clicking still works,
while still hiding the suggestions if the user clicks on something else.
Diffstat (limited to 'app/assets/javascripts/application.js')
0 files changed, 0 insertions, 0 deletions