Skip to content

Commit

Permalink
update(Dialog.tsx): change HTMLElement to Element
Browse files Browse the repository at this point in the history
  • Loading branch information
yair65 committed May 16, 2024
1 parent cd09155 commit 9cd0516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export default class Dialog extends PureComponent<DialogProps, DialogState> {
}

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.`
Expand Down

0 comments on commit 9cd0516

Please sign in to comment.