Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c74660eb8e | |||
| dba6add26d | |||
| 6ece39d95d |
@@ -246,7 +246,15 @@ async function handleObjectClicked(hit: any, isMultiSelect: boolean, mouseEvent?
|
||||
const ids = selection.map((s) => s.id)
|
||||
await viewerHandler.selectObjects(ids)
|
||||
} else {
|
||||
visualStore.setPostClickSkipNeeded(false)
|
||||
// Only set skip flag if this visual has active selections to clear.
|
||||
// When selectionManager.clear() is called with no active selection,
|
||||
// Power BI won't send a reaction update, so there's nothing to skip.
|
||||
// Setting the flag unconditionally would cause it to eat the NEXT
|
||||
// legitimate Data update (e.g., adding Color By input).
|
||||
const hasActiveSelection = selectionHandler.getCurrentSelection().length > 0
|
||||
if (hasActiveSelection) {
|
||||
visualStore.setPostClickSkipNeeded(true)
|
||||
}
|
||||
tooltipHandler.hide()
|
||||
if (!isMultiSelect) {
|
||||
selectionHandler.clear()
|
||||
|
||||
@@ -87,6 +87,7 @@ export class FilteredSelectionExtension extends SelectionExtension {
|
||||
if (!selection) {
|
||||
console.log('🎯 No selection, calling super with null')
|
||||
super.onObjectClicked(selection)
|
||||
this.emit(FilteredSelectionEvent.FilteredObjectClicked, null)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -117,6 +118,7 @@ export class FilteredSelectionExtension extends SelectionExtension {
|
||||
} else {
|
||||
// If no valid hits, treat as empty selection
|
||||
super.onObjectClicked(null)
|
||||
this.emit(FilteredSelectionEvent.FilteredObjectClicked, null)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user