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 was archived by the owner on Apr 26, 2024. It is now read-only.
In your onSelectedChanged handler function, you can decide whether to update the state object or not:
constmaxSelected=3;const{ options, selected }=this.state;<MultiSelectoptions={options}selected={selected}onSelectedChanged={(newSelected)=>{if(newSelected.length<=maxSelected){// Number of Selections is OK, save to state...this.setState({selected: newSelected})}else{console.log("Too many selected");}}}/>
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: