You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.
Hey..!
i want to toggle value of this.tag.itemsSelected on selection more than one value.
Simply i mean that if a user select one item and then he selecte the other one the item should automatically toggle and only second value should be selected.
#thanks in advance.....
The text was updated successfully, but these errors were encountered:
i create a workaround changing the handleSelectItem of TabSelect.js
` handleSelectItem = (item) => {
const key = item[this.props.keyAttr] || item
const value = []
const found = this.state.value[key]
// Item is on array, so user is removing the selection
// if (found) {
// delete value[key]
// } else {
// // User is adding but has reached the max number permitted
// if (this.props.max && this.totalSelected >= this.props.max) {
// if (this.props.onMaxError) {
// return this.props.onMaxError()
// }
// }
//
// }
value[key] = item
return this.setState({ value }, () => {
if (this.props.onItemPress) {
this.props.onItemPress(item)
}
})
}`
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey..!
i want to toggle value of this.tag.itemsSelected on selection more than one value.
Simply i mean that if a user select one item and then he selecte the other one the item should automatically toggle and only second value should be selected.
#thanks in advance.....
The text was updated successfully, but these errors were encountered: