-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
any chance for the tags to be editable? #186
Comments
I am facing the same issue. |
I rewrite renderTag as follows, hope it helps renderTag = (props) => {
const { isTagFocus } = this.state
const { tag, key, diasbled, onRemove, classNameRemove, getTagDisplayValue, ...other } = props
return <span key={key} {...other} onBlur={() => { this.setState({ isTagFocus: false }) }}>
{isTagFocus
? <AutosizeInput
onChange={this.hangdleTagChange}
onFocus={(e) => {
this.setState({
tagEditIndex: this.state.inputBills.indexOf(e.target.value)
})
}}
value={getTagDisplayValue(tag)}
inputClassName={styles.tagEditInput}
/>
: <span onClick={() => { this.setState({ isTagFocus: true }) }}>
{getTagDisplayValue(tag)}
</span>
}
{!diasbled && <a className={classNameRemove} onClick={(e) => { onRemove(key) }}></a>}
</span>
} |
and how do you implement this? |
Simply add the renderTag prop like so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i need this feature in my application
The text was updated successfully, but these errors were encountered: