@craft-native/ios 0.0.218 → 0.0.219
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -5709,7 +5709,10 @@ final class CraftNativeScreenController: UIViewController, UIScrollViewDelegate,
|
|
|
5709
5709
|
}
|
|
5710
5710
|
|
|
5711
5711
|
private func restoreFocus(_ focused: UIView?) {
|
|
5712
|
-
guard let focused, focused.window != nil, !focused.isFirstResponder
|
|
5712
|
+
guard let focused, focused.window != nil, !focused.isFirstResponder,
|
|
5713
|
+
lastFocusedInput === focused, firstResponder(in: rootStack) == nil else { return }
|
|
5714
|
+
// A delayed acknowledgement belongs to the input that scheduled it.
|
|
5715
|
+
// A newer field or an explicit dismissal owns focus now.
|
|
5713
5716
|
_ = focused.becomeFirstResponder()
|
|
5714
5717
|
}
|
|
5715
5718
|
|