diff --git a/packages/core/src/components/Dialog/Dialog.tsx b/packages/core/src/components/Dialog/Dialog.tsx index f6c243fcbd..7d2be993f2 100644 --- a/packages/core/src/components/Dialog/Dialog.tsx +++ b/packages/core/src/components/Dialog/Dialog.tsx @@ -281,7 +281,7 @@ export default class Dialog extends PureComponent { } const containerElement = document.querySelector(containerSelector); - if (!containerElement || !(containerElement instanceof HTMLElement)) { + if (!containerElement || !(containerElement instanceof Element)) { // TODO add env check - if not jest env - trashing the logs - https://monday.monday.com/boards/3532714909/pulses/5570955392 // console.error( // `Dialog: Container element with selector "${containerSelector}" was not found or is not an HTMLElement. Dialog may not be correctly positioned.`