Skip to content

Commit 24538f5

Browse files
🐛 Fix the bug of ignoring null when the value is empty.
1 parent 7e3982c commit 24538f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/class/HTMLCodeBlockElement.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export default class HTMLCodeBlockElement extends HTMLElement {
213213
this.#label === value ||
214214
(
215215
this.#label === '' &&
216+
this.getAttribute('label') === null &&
216217
value === null
217218
)
218219
) {
@@ -243,6 +244,7 @@ export default class HTMLCodeBlockElement extends HTMLElement {
243244
this.#language === value ||
244245
(
245246
this.#language === '' &&
247+
this.getAttribute('language') === null &&
246248
value === null
247249
)
248250
) {

0 commit comments

Comments
 (0)