We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9537893 commit d9826ffCopy full SHA for d9826ff
packages/@ourworldindata/grapher/src/entitySelector/EntitySelector.tsx
@@ -623,11 +623,12 @@ export class EntitySelector extends React.Component<{
623
const { partitionedSearchResults } = this
624
if (this.searchInput) {
625
const { selected = [] } = partitionedSearchResults ?? {}
626
- this.selectionArray.deselectEntities(
627
- selected.map((entity) => entity.name)
628
- )
+ const entityNames = selected.map((entity) => entity.name)
+ this.selectionArray.deselectEntities(entityNames)
+ this.manager.focusArray?.deactivate(...entityNames)
629
} else {
630
this.selectionArray.clearSelection()
631
+ this.manager.focusArray?.clear()
632
}
633
634
0 commit comments