This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
auro-button: NotSupportedError: A newly constructed custom element must not have attributes #239
Labels
Type: Bug
Bug or Bug fixes
Describe the bug
Our react (v17.0.2) application is having trouble rendering in Safari, whenever we use an auro-button. In chrome, and edge, everything seems to be fine.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Application should render
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
So far, this seems to be happening on 3 different machines using Safari. Also, when running playwright tests with jest, in headless mode, we get similar rendering errors.
After days of tinkering, we've made some progress, but we're not sure of the consequences. If I go to
node_modules/@alaskaairux/auro-button/dist/auro-button.js
, on line 39 there is a polyfill applied to the shadow root. Commenting out this line seems to fix the issue, however, I'm not familiar with this particular function and do not know the consequences of removing it.The text was updated successfully, but these errors were encountered: