Trying to create an fds-dropdown element using document.createElement() causes a DOMException and doesn't work because the component implementation doesn't currently follow the spec. The reason is that it sets an attribute in the constructor (which is not allowed) by doing this.tabIndex = 0. This code should be moved to firstUpdated() (or connectedCallback()).
This also makes the component unusable with a React wrapper (until this is fixed).
Trying to create an
fds-dropdown
element usingdocument.createElement()
causes aDOMException
and doesn't work because the component implementation doesn't currently follow the spec. The reason is that it sets an attribute in the constructor (which is not allowed) by doingthis.tabIndex = 0
. This code should be moved to firstUpdated() (orconnectedCallback()
).This also makes the component unusable with a React wrapper (until this is fixed).