8000
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 906ee35 commit 5e746c1Copy full SHA for 5e746c1
packages/components/src/custom/apiCustomElement.ts
@@ -366,7 +366,7 @@ export class VueElement extends BaseClass {
366
protected _setAttr(key: string) {
367
// ignore data- and aria- attrs
368
if (key.startsWith('data-') || key.startsWith('aria-')) return;
369
- let value: any = this.getAttribute(key);
+ let value: any = this.hasAttribute(key) ? this.getAttribute(key) : undefined;
370
const camelKey = camelize(key);
371
if (this._numberProps && this._numberProps[camelKey]) {
372
value = toNumberIfValid(value);
0 commit comments