Skip to content
Snippets Groups Projects
Commit 9b6cd4fc authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Do not activate the already active list item

parent 1377e7b8
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,11 @@ class ListMonitor extends React.Component {
}
handleActivate (index) {
// Do nothing if activating the currently active item
if (this.state.activeIndex === index) {
return;
}
this.setState({
activeIndex: index,
activeValue: this.props.value[index]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment