mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-30 20:07:48 +08:00
fix(composer): Prevent participants field from adding unecessary changes
- This prevents the composer from being marked as not pristine even if no real changes have been made
This commit is contained in:
parent
d1f9afba00
commit
8012ed3493
1 changed files with 1 additions and 0 deletions
|
@ -467,6 +467,7 @@ class TokenizingTextField extends React.Component
|
||||||
_addInputValue: (input, options={}) =>
|
_addInputValue: (input, options={}) =>
|
||||||
return if @_atMaxTokens()
|
return if @_atMaxTokens()
|
||||||
input ?= @state.inputValue
|
input ?= @state.inputValue
|
||||||
|
return if input.length is 0
|
||||||
@props.onAdd(input, options)
|
@props.onAdd(input, options)
|
||||||
@_clearInput()
|
@_clearInput()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue