Search anywhere within tag for tag selector filter
Follow-up to 62ea7e970a
, and I think in line with the pre-React
behavior
This commit is contained in:
parent
b248d28992
commit
69ff8ac1b6
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ Zotero.TagSelector = class TagSelectorContainer extends React.Component {
|
||||||
}
|
}
|
||||||
if (this.state.searchString) {
|
if (this.state.searchString) {
|
||||||
let lcStr = this.state.searchString.toLowerCase();
|
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) => {
|
tags = tags.map((name) => {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue