Merge branch 'master' of ssh://github.com/nylas/N1

This commit is contained in:
Ben Gotow 2016-07-18 14:25:09 -07:00
commit 310af1727d

View file

@ -528,8 +528,13 @@ class TokenizingTextField extends React.Component
_onPaste: (event) =>
data = event.clipboardData.getData('text/plain')
@_addInputValue(data)
event.preventDefault()
newInputValue = @state.inputValue + data
if RegExpUtils.emailRegex().test(newInputValue)
@_addInputValue(newInputValue, skipNameLookup: true)
event.preventDefault()
else
@_refreshCompletions(newInputValue)
# Managing Suggestions