mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
move resize handler from _beforecreate to _after.. (fixes #1743)
This commit is contained in:
parent
03c7612c6b
commit
d27dbae51c
@ -529,7 +529,7 @@ export default class ElementWrapper extends Wrapper {
|
||||
renderer.hasComplexBindings = true;
|
||||
|
||||
block.builders.hydrate.addLine(
|
||||
`#component.root._beforecreate.push(${handler});`
|
||||
`#component.root._aftercreate.push(${handler});`
|
||||
);
|
||||
}
|
||||
});
|
||||
|
@ -12,7 +12,7 @@ function create_main_fragment(component, ctx) {
|
||||
c() {
|
||||
div = createElement("div");
|
||||
div.textContent = "some content";
|
||||
component.root._beforecreate.push(div_resize_handler);
|
||||
component.root._aftercreate.push(div_resize_handler);
|
||||
},
|
||||
|
||||
m(target, anchor) {
|
||||
|
Loading…
Reference in New Issue
Block a user