Skip to content

Commit 91931e4

Browse files
committed
fix(ui): Clear selected result before toggling new one
relevant: #1236
1 parent 386a4d2 commit 91931e4

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

web/app/src/components/EndpointCard.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ const handleMouseLeave = (result, event) => {
175175
}
176176
177177
const handleClick = (result, event, index) => {
178-
// Toggle selection
178+
// Clear selections in other cards first
179+
window.dispatchEvent(new CustomEvent('clear-data-point-selection'))
180+
// Then toggle this card's selection
179181
if (selectedResultIndex.value === index) {
180182
selectedResultIndex.value = null
181183
emit('showTooltip', null, event, 'click')

web/app/src/components/SuiteCard.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ const handleMouseLeave = (result, event) => {
161161
}
162162
163163
const handleClick = (result, event, index) => {
164-
// Toggle selection
164+
// Clear selections in other cards first
165+
window.dispatchEvent(new CustomEvent('clear-data-point-selection'))
166+
// Then toggle this card's selection
165167
if (selectedResultIndex.value === index) {
166168
selectedResultIndex.value = null
167169
emit('showTooltip', null, event, 'click')

web/static/css/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/static/js/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)