From 33b993cc45b84041655eca637e668d597b7bf403 Mon Sep 17 00:00:00 2001 From: u-e Date: Tue, 12 Feb 2019 16:46:58 +0300 Subject: [PATCH] remove button fir first tag --- .../tagArea/view/tagAreaView.js | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/components/editorElements/tagArea/view/tagAreaView.js b/src/components/editorElements/tagArea/view/tagAreaView.js index 9391df5a9..92f6b5e1e 100644 --- a/src/components/editorElements/tagArea/view/tagAreaView.js +++ b/src/components/editorElements/tagArea/view/tagAreaView.js @@ -99,32 +99,32 @@ export default class TagAreaView extends Component { {chips.map( (chip, i) => i < 5 && ( - { - this.inputs[i] = input; - }} - isPin={i === 0 && chips[1]} - placeholderTextColor="#fff" - removeButton={i !== 0} - handleOnRemoveButtonPress={() => this._handleTagRemove(i)} - editable={!isPreviewActive} - maxLength={50} - placeholder="tags" - autoFocus={i !== 0 && chips.length - 1 === i} - multiline={false} - handleOnChange={text => this._handleOnChange(text, i)} - handleOnBlur={() => this._handleOnBlur(i)} - blurOnSubmit - value={ - activeChip === i - ? currentText || chip.replace(/\s/g, '') - : chip.replace(/\s/g, '') - } - autoCapitalize="none" - onFocus={() => this.setState({ activeChip: i })} - {...this.props} - /> + { + this.inputs[i] = input; + }} + isPin={i === 0 && chips[1]} + placeholderTextColor="#fff" + removeButton + handleOnRemoveButtonPress={() => this._handleTagRemove(i)} + editable={!isPreviewActive} + maxLength={50} + placeholder="tags" + autoFocus={i !== 0 && chips.length - 1 === i} + multiline={false} + handleOnChange={text => this._handleOnChange(text, i)} + handleOnBlur={() => this._handleOnBlur(i)} + blurOnSubmit + value={ + activeChip === i + ? currentText || chip.replace(/\s/g, '') + : chip.replace(/\s/g, '') + } + autoCapitalize="none" + onFocus={() => this.setState({ activeChip: i })} + {...this.props} + /> ), )}