Skip to content

Commit

Permalink
fix(front): correct small bug with filter highlight logic
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Oct 23, 2024
1 parent 23bd49f commit 0b01f71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/front/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thatopen/components-front",
"description": "Collection of frontend tools to author BIM apps.",
"version": "2.4.0-alpha.8",
"version": "2.4.0-alpha.9",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down
7 changes: 6 additions & 1 deletion packages/front/src/fragments/Highlighter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,15 @@ export class Highlighter
} else {
fragment.resetColor(ids);
}

if (this.selection[name][fragID]) {
for (const id of ids) {
this.selection[name][fragID].delete(id);
}
}
}

this.events[name].onClear.trigger(null);
this.selection[name] = {};
}
}

Expand Down

0 comments on commit 0b01f71

Please sign in to comment.