diff --git a/wire/core/WireArray.php b/wire/core/WireArray.php index febc908b..029377e9 100644 --- a/wire/core/WireArray.php +++ b/wire/core/WireArray.php @@ -1892,6 +1892,8 @@ class WireArray extends Wire implements \IteratorAggregate, \ArrayAccess, \Count protected function trackAdd($item, $key) { if($key) {} if($this->trackChanges()) $this->itemsAdded[] = $item; + // wire this WireArray to the same instance of $item, if it isn’t already wired + if($this->_wire === null && $item instanceof Wire && $item->isWired()) $item->wire($this); } /**