Skip to content

Commit 4079edd

Browse files
trueadmdummdidumm
andauthored
Update packages/svelte/src/internal/client/dom/elements/class.js
Co-authored-by: Simon H <[email protected]>
1 parent c28fc09 commit 4079edd

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/internal/client/dom/elements

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/dom/elements/class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function class_name(dom, value) {
7474
// Removing the attribute when the value is only an empty string causes
7575
// peformance issues vs simply making the className an empty string. So
7676
// we should only remove the class if the the value is nullish.
77-
if (value === null) {
77+
if (value == null) {
7878
dom.removeAttribute('class');
7979
} else {
8080
set_class_name(dom, next_class_name);

0 commit comments

Comments
 (0)