From 8c3ff7d6ce13629e12c330e050e64618c403d822 Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 13 Mar 2023 18:40:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dattribute=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.js b/src/index.js index f48c880..3d33e1f 100644 --- a/src/index.js +++ b/src/index.js @@ -141,6 +141,10 @@ export class Component extends HTMLElement { [__prop2attr__](name, value) { let options = this.#getPropOptions(name) + if (options.attribute === false) { + return + } + switch (options.type) { case Number: case String: