From 435e628973172cd92ad918acd8eea9d3912c3194 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 12 Mar 2019 06:45:25 -0400 Subject: [PATCH] Fix high CPU during file syncing (regression from React tag selector) --- chrome/content/zotero/containers/tagSelector.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/containers/tagSelector.jsx b/chrome/content/zotero/containers/tagSelector.jsx index efb0a2dd6b..0f21ee1494 100644 --- a/chrome/content/zotero/containers/tagSelector.jsx +++ b/chrome/content/zotero/containers/tagSelector.jsx @@ -72,6 +72,9 @@ Zotero.TagSelector = class TagSelectorContainer extends React.Component { } if (type == 'item' || type == 'item-tag') { + if (event == 'redraw') { + return; + } return this.setState({tags: await this.getTags()}); }