ol 10.9.1-dev.1781177277261 → 10.9.1-dev.1781250066697

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Map.js CHANGED
@@ -1404,7 +1404,7 @@ class Map extends BaseObject {
1404
1404
  this,
1405
1405
  ),
1406
1406
  ];
1407
- if (targetElement instanceof HTMLElement) {
1407
+ if (!isCanvas(targetElement)) {
1408
1408
  const rootNode = targetElement.getRootNode();
1409
1409
  if (rootNode instanceof ShadowRoot) {
1410
1410
  this.resizeObserver_.observe(rootNode.host);