polyfills
polyfills copied to clipboard
[scoped-custom-element-registry] toggleAttribute polyfill does not retain force argument
Description
When calling toggleAttribute
, the polyfill does not retain the force
argument.
This means that when I call toggleAttribute('my-attribute', false)
, the attribute is applied when it should not be.
Example
// Include the scoped-custom-element-registry polyfill
this.renderRoot.querySelector('my-custom-element').toggleAttribute('my-attribute', false)
Steps to reproduce
- Call
toggleAttribute
on an element - Provide
'my-attribute'
as the first argument - Provide
false
as the second argument
Expected behavior
my-attribute
should not be applied to the element.
Actual behavior
my-attribute
is applied to the element.
Version
@webcomponents/[email protected]
Browsers affected
- [x] Chrome
- [x] Firefox
- [x] Edge
- [x] Safari
- [x] IE 11