Skip to content

Commit e93905c

Browse files
committed
css props
1 parent 53ece95 commit e93905c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/svelte/src/internal/client/dom/blocks/css-props.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { namespace_svg } from '../../../../constants.js';
2-
import { hydrate_nodes, hydrating } from '../hydration.js';
2+
import { hydrate_anchor, hydrate_nodes, hydrating } from '../hydration.js';
33
import { empty } from '../operations.js';
44
import { render_effect } from '../../reactivity/effects.js';
55
import { remove } from '../reconciler.js';
@@ -22,7 +22,9 @@ export function css_props(anchor, is_html, props, component) {
2222
// Hydration: css props element is surrounded by a ssr comment ...
2323
element = /** @type {HTMLElement | SVGElement} */ (hydrate_nodes[0]);
2424
// ... and the child(ren) of the css props element is also surround by a ssr comment
25-
component_anchor = /** @type {Comment} */ (element.firstChild);
25+
component_anchor = /** @type {Comment} */ (
26+
hydrate_anchor(/** @type {Comment} */ (element.firstChild))
27+
);
2628
} else {
2729
if (is_html) {
2830
element = document.createElement('div');

0 commit comments

Comments
 (0)