fix(composer): don't blur input field when app blurs

Fixes #852
This commit is contained in:
Evan Morikawa 2016-01-28 16:37:07 -08:00
parent cfc937e661
commit b276445c86

View file

@ -410,6 +410,10 @@ class TokenizingTextField extends React.Component
@_refreshCompletions(val)
_onInputBlurred: (event) =>
# Not having a relatedTarget can happen when the whole app blurs. When
# this happens we want to leave the field as-is
return unless event.relatedTarget
if event.relatedTarget is React.findDOMNode(@)
return