Skip to content

Commit

Permalink
Fix highlight remaining on map when identify panel is hidden due to s…
Browse files Browse the repository at this point in the history
…creen size
  • Loading branch information
milespetrov committed Feb 19, 2025
1 parent 29ac30b commit 8c8de1c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/fixtures/details/components/result-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,11 @@ const clickShowList = () => {
const detailsClosed = () => {
detailsFixture.value.removeDetailsHilight();
// unwatch when the panel is closed, not when unmounted because a minimized
// panel will be unmounted but still needs to have watchers active.
watchers.value.forEach(unwatch => unwatch());
handlers.value.forEach(handler => iApi.event.off(handler));
// (JR) commenting this out. if user turns off toggle, it shouldnt reset back to on when screen closes.
// detailsStore.hilightToggle = true;
};
Expand Down Expand Up @@ -546,8 +551,6 @@ onBeforeMount(() => {
onBeforeUnmount(() => {
// clean up hooks into various events.
watchers.value.forEach(unwatch => unwatch());
handlers.value.forEach(handler => iApi.event.off(handler));
el.value?.removeEventListener('blur', blurEvent);
el.value?.removeEventListener('keyup', keyupEvent);
Expand Down

0 comments on commit 8c8de1c

Please sign in to comment.