Commit 8e40d594 authored by Robert Speicher's avatar Robert Speicher

Work around a Chrome 43 bug preventing note editing

parent 76a75823
......@@ -312,6 +312,13 @@ class @Notes
form.show()
textarea = form.find("textarea")
textarea.focus()
# HACK (rspeicher): Work around a Chrome 43 bug(?).
# The textarea has the correct value, Chrome just won't show it unless we
# modify it, so let's add a newline!
textarea.val (_, value) ->
"#{value}\n"
disableButtonIfEmptyField textarea, form.find(".js-comment-button")
###
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment