Skip to content

Commit

Permalink
fix: add attribute hover style is not applied (#66)
Browse files Browse the repository at this point in the history
fix: add attribute hover is not applied
  • Loading branch information
oltionchampari authored Oct 13, 2023
1 parent 4f300e5 commit d74529b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Taskview/SearchBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,11 @@ export class SearchBar {
if (d.optionType === 'gene') {
// set global optionId
this._geneHoverOptionId = d.optionId;
const currentTarget = event.currentTarget as HTMLElement; // store current target as it becomes null by the time the timeout is executed
setTimeout(() => {
// update detail after timeout time global and current optionId is equal
if (d.optionId === this._geneHoverOptionId) {
this._mouseOverHandler(d, event.currentTarget);
this._mouseOverHandler(d, currentTarget);
}
}, 200);
} else {
Expand Down

0 comments on commit d74529b

Please sign in to comment.