Explorar el Código

fixed contentRoot beeing reset if set by base component

Nicolas Cannasse hace 5 meses
padre
commit
341bf2469d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hrt/impl/DomkitViewer.hx

+ 1 - 1
hrt/impl/DomkitViewer.hx

@@ -579,7 +579,7 @@ class DomkitViewer extends h2d.Object {
 								inst.dom = obj.dom;
 								inst.dom = obj.dom;
 						});
 						});
 						var prevRoot = currentRoot;
 						var prevRoot = currentRoot;
-						currentRoot = obj;
+						currentRoot = obj.dom.contentRoot;
 						for( c in m.children )
 						for( c in m.children )
 							handleErrors(res, () -> addRec(c, interp, obj));
 							handleErrors(res, () -> addRec(c, interp, obj));
 						interp.variables = prev;
 						interp.variables = prev;