Apply new design to highlighted tags and add toggle mechanic
This commit is contained in:
parent
a13ee490e8
commit
1c31fd3413
2 changed files with 16 additions and 17 deletions
|
@ -141,8 +141,13 @@ class TagOrderStore extends Store {
|
|||
newTags = [...this._state.selectedTags, payload.tag];
|
||||
}
|
||||
} else {
|
||||
// Select individual tag
|
||||
newTags = [payload.tag];
|
||||
if (this._state.selectedTags.length === 1 && this._state.selectedTags.includes(payload.tag)) {
|
||||
// Existing (only) selected tag is being normally clicked again, clear tags
|
||||
newTags = [];
|
||||
} else {
|
||||
// Select individual tag
|
||||
newTags = [payload.tag];
|
||||
}
|
||||
}
|
||||
// Only set the anchor tag if the tag was previously unselected, otherwise
|
||||
// the next range starts with an unselected tag.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue