From 69ff8ac1b6854e65af4110e7b1ac0a88f7e85a37 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 27 Mar 2019 07:49:59 -0400 Subject: [PATCH] Search anywhere within tag for tag selector filter Follow-up to 62ea7e970a, and I think in line with the pre-React behavior --- chrome/content/zotero/containers/tagSelector.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/containers/tagSelector.jsx b/chrome/content/zotero/containers/tagSelector.jsx index 420ceed81a..26f5983f5b 100644 --- a/chrome/content/zotero/containers/tagSelector.jsx +++ b/chrome/content/zotero/containers/tagSelector.jsx @@ -171,7 +171,7 @@ Zotero.TagSelector = class TagSelectorContainer extends React.Component { } if (this.state.searchString) { let lcStr = this.state.searchString.toLowerCase(); - tags = tags.filter(tag => tag.toLowerCase().startsWith(lcStr)); + tags = tags.filter(tag => tag.toLowerCase().includes(lcStr)); } tags = tags.map((name) => { return {