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 0ccf5b2 commit 5358491Copy full SHA for 5358491
packages/svelte/src/internal/client/dom/elements/class.js
@@ -67,7 +67,7 @@ export function set_mathml_class(dom, value) {
67
export function set_class(dom, value, hash) {
68
// @ts-expect-error need to add __className to patched prototype
69
var prev_class_name = dom.__className;
70
- var next_class_name = to_class(value) + (hash != null ? ' ' + hash : '');
+ var next_class_name = to_class(value) + (hash ? ' ' + hash : '');
71
72
if (hydrating && dom.className === next_class_name) {
73
// In case of hydration don't reset the class as it's already correct.
0 commit comments