You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my react application, I want to show emoji picker in one of the component which loads into iFrame. When my component (which have <Picker ... /> component) loads into the iFrame then it throws below error
HTMLElement.ts:23 Uncaught TypeError: Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function. at $efa000751917694d$export$2e2bcd8739ae039.$6f57cc9cd54c5aaa$export$2e2bcd8739ae039 [as constructor] (<anonymous>:3290:35) at $efa000751917694d$export$2e2bcd8739ae039.$26f27c338a96b1a6$export$2e2bcd8739ae039 [as constructor] (<anonymous>:3333:20) at new $efa000751917694d$export$2e2bcd8739ae039 (<anonymous>:4991:19) at <anonymous>:1:1
I think here HTMLElement is referring to parent window and hence it doesn't allow to create a object of it. I can access the custom element "em-emoji-picker" in the iFrame window but can't create a object of it.
The text was updated successfully, but these errors were encountered:
On my react application, I want to show emoji picker in one of the component which loads into iFrame. When my component (which have <Picker ... /> component) loads into the iFrame then it throws below error
HTMLElement.ts:23 Uncaught TypeError: Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function. at $efa000751917694d$export$2e2bcd8739ae039.$6f57cc9cd54c5aaa$export$2e2bcd8739ae039 [as constructor] (<anonymous>:3290:35) at $efa000751917694d$export$2e2bcd8739ae039.$26f27c338a96b1a6$export$2e2bcd8739ae039 [as constructor] (<anonymous>:3333:20) at new $efa000751917694d$export$2e2bcd8739ae039 (<anonymous>:4991:19) at <anonymous>:1:1
I think here
HTMLElement
is referring to parent window and hence it doesn't allow to create a object of it. I can access the custom element "em-emoji-picker" in the iFrame window but can't create a object of it.The text was updated successfully, but these errors were encountered: