diff options
| -rw-r--r-- | src/rx.ts | 3 | 
1 files changed, 2 insertions, 1 deletions
@@ -384,7 +384,8 @@ function appendChild(state: State, element: Element, child: Html, lastAdded?: No      appendNode(element, childElement, lastAdded)      if (onmount !== undefined) { -      onmount(childElement) +      // Wait for the element to be on the page +      window.setTimeout(() => onmount(childElement), 0)      }      return {  | 
