From 9b6cd4fc6325debd008f27b9cefe1bf105ff80d5 Mon Sep 17 00:00:00 2001 From: Paul Kaplan <pkaplan@media.mit.edu> Date: Mon, 21 May 2018 15:13:22 -0400 Subject: [PATCH] Do not activate the already active list item --- src/containers/list-monitor.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/containers/list-monitor.jsx b/src/containers/list-monitor.jsx index 4b7cc80db..338b9d844 100644 --- a/src/containers/list-monitor.jsx +++ b/src/containers/list-monitor.jsx @@ -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] -- GitLab