Browse Source

fix dom not refreshed when removing a child object (:first-child etc.)

Nicolas Cannasse 5 months ago
parent
commit
cabe8031a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h2d/Object.hx

+ 1 - 1
h2d/Object.hx

@@ -517,7 +517,7 @@ class Object #if (domkit && !domkit_heaps) implements domkit.Model<h2d.Object> #
 			if( s.parentContainer != null ) s.setParentContainer(null);
 			s.posChanged = true;
 			#if domkit
-			if( s.dom != null ) s.dom.onParentChanged();
+			if( s.dom != null ) s.dom.onParentChanged(dom);
 			#end
 			onContentChanged();
 		}