mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-14 03:59:02 +08:00
Merge branch 'master' of ssh://github.com/nylas/N1
This commit is contained in:
commit
310af1727d
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue