Closed jmcgavin closed 1 year ago
When calling toggleAttribute, the polyfill does not retain the force argument.
toggleAttribute
force
This means that when I call toggleAttribute('my-attribute', false), the attribute is applied when it should not be.
toggleAttribute('my-attribute', false)
// Include the scoped-custom-element-registry polyfill this.renderRoot.querySelector('my-custom-element').toggleAttribute('my-attribute', false)
'my-attribute'
false
my-attribute should not be applied to the element.
my-attribute
my-attribute is applied to the element.
@webcomponents/scoped-custom-element-registry@0.0.6
The fix for this is available in v0.0.8.
v0.0.8
Description
When calling
toggleAttribute
, the polyfill does not retain theforce
argument.This means that when I call
toggleAttribute('my-attribute', false)
, the attribute is applied when it should not be.Example
Steps to reproduce
toggleAttribute
on an element'my-attribute'
as the first argumentfalse
as the second argumentExpected behavior
my-attribute
should not be applied to the element.Actual behavior
my-attribute
is applied to the element.Version
@webcomponents/scoped-custom-element-registry@0.0.6
Browsers affected