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:
Juan Tejada 2016-06-08 13:45:39 -07:00
parent d1f9afba00
commit 8012ed3493

View file

@ -467,6 +467,7 @@ class TokenizingTextField extends React.Component
_addInputValue: (input, options={}) =>
return if @_atMaxTokens()
input ?= @state.inputValue
return if input.length is 0
@props.onAdd(input, options)
@_clearInput()