diff --git a/lib/src/bones_ui_component.dart b/lib/src/bones_ui_component.dart index 9ac0e23..3fe3cbc 100644 --- a/lib/src/bones_ui_component.dart +++ b/lib/src/bones_ui_component.dart @@ -1022,7 +1022,8 @@ abstract class UIComponent extends UIEventHandler { } if (uiComponent == null) { - for (var uiRootComponent in UIRootComponent.getInstances()) { + var uiRootComponents = UIRootComponent.getInstances(); + for (var uiRootComponent in uiRootComponents.reversed) { if (uiRootComponent == uiRoot) continue; uiComponent = caller(uiRootComponent);