We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 969f289 commit a0b83b2Copy full SHA for a0b83b2
lib/mixins/properties-changed.js
@@ -497,12 +497,12 @@ export const PropertiesChanged = dedupingMixin(
497
*/
498
_valueToNodeAttribute(node, value, attribute) {
499
const str = this._serializeValue(value);
500
+ if (attribute === 'class' || attribute === 'name' || attribute === 'slot') {
501
+ node = /** @type {?Element} */(wrap(node));
502
+ }
503
if (str === undefined) {
504
node.removeAttribute(attribute);
505
} else {
- if (attribute === 'class' || attribute === 'name' || attribute === 'slot') {
- node = /** @type {?Element} */(wrap(node));
- }
506
node.setAttribute(attribute, str);
507
}
508
0 commit comments