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 c28fc09 commit 4079eddCopy full SHA for 4079edd
packages/svelte/src/internal/client/dom/elements/class.js
@@ -74,7 +74,7 @@ export function class_name(dom, value) {
74
// Removing the attribute when the value is only an empty string causes
75
// peformance issues vs simply making the className an empty string. So
76
// we should only remove the class if the the value is nullish.
77
- if (value === null) {
+ if (value == null) {
78
dom.removeAttribute('class');
79
} else {
80
set_class_name(dom, next_class_name);
0 commit comments