diff --git a/packages/web/src/js/Tooltip.ts b/packages/web/src/js/Tooltip.ts index 9a7d0a2782..8eaaa9a358 100644 --- a/packages/web/src/js/Tooltip.ts +++ b/packages/web/src/js/Tooltip.ts @@ -84,9 +84,11 @@ class Tooltip extends BaseComponent { } isPlacementControlled() { - const { placementControlled } = this.config as Config; + const config = this.config as Config; + const placementControlledKey = 'placementControlled'; - return placementControlled !== false; + // key can exist in the dataset but can have undefined value + return placementControlledKey in config && config[placementControlledKey] !== false; } updateConfig(newConfig: Partial) {