Skip to content

[iOS][iPad] Floating numeric keypad dismissal retains TextInput focus and the next tap anywhere reopens the keyboard #60543

Backlog

Description

@lorenzomilesi

Description

On iPad, a TextInput using keyboardType="numeric" or "number-pad" initially opens a floating numeric keypad.

After editing the value, tapping outside dismisses the floating keypad, but neither onBlur nor onEndEditing fires. React Native still reports the input as focused, while Keyboard.isVisible() returns false and Keyboard.metrics() returns undefined.

The next tap anywhere on the screen reopens the full-size keyboard (or the floating one if explicitly set as favourite), without a new onFocus event. This does not require tapping a button, another interactive control, or a TextInput: tapping empty space or static text is sufficient.

This can also cause a keyboard flash when closing a screen or modal: the closing tap reopens the keyboard immediately before the screen disappears.

Confirmed in a standalone reproduction with:

  • React Native 0.88.1
  • React 19.3.0
  • iPad (A16) simulator running iPadOS 27.2
  • Apple software keyboard
  • No third-party runtime libraries, including no react-native-keyboard-controller

The button included in the reproduction only logs focus state. It is not required to trigger the bug.

Possibly related: #57411

Unlike that report, this issue does not require tapping the focused TextInput again.

Steps to reproduce

  1. Launch the reproduction on an iPad.
  2. Tap the input with keyboardType="numeric".
  3. Enter or change a number using the floating numeric keypad.
  4. Tap outside the keypad once. The floating keypad disappears.
  5. Tap anywhere again, including empty space or static text.
  6. Observe that the full-size keyboard opens, even though no TextInput was tapped.
  7. Reload and repeat with keyboardType="number-pad".

Expected:
After dismissing the floating numeric keypad, tapping non-input content should not reopen the keyboard.

Actual:
The input remains focused after the keypad disappears, and the next tap anywhere reopens the full-size keyboard.

React Native Version

0.88.1

Affected Platforms

Runtime - iOS

Output of npx @react-native-community/cli info

System:
  OS: macOS 26.6.2
  CPU: (11) arm64 Apple M3 Pro
  Memory: 102.22 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 26.3.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 1.22.19
    path: /opt/homebrew/bin/yarn
  npm:
    version: 11.16.0
    path: /opt/homebrew/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/<redacted>/.gem/ruby/3.1.7/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.5
      - iOS 26.5
      - macOS 26.5
      - tvOS 26.5
      - visionOS 26.5
      - watchOS 26.5
  Android SDK: Not Found
IDEs:
  Android Studio: 2026.2 AI-262.10968.63.2622.16840690
  Xcode:
    version: 26.6/17F113
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 3.1.7
    path: /opt/homebrew/opt/ruby@3.1/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.2.0
    wanted: 20.2.0
  react:
    installed: 19.3.0
    wanted: 19.3.0
  react-native:
    installed: 0.88.1
    wanted: 0.88.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

No crash or exception occurs. This is a keyboard presentation and focus issue.

Summary of observed behavior and diagnostic findings:

1. Opening the floating numeric keypad:
   - onFocus fires.
   - The TextInput is registered as focused.
   - Keyboard.isVisible() reports false.
   - Keyboard.metrics() returns undefined.

2. Tapping outside dismisses the floating keypad:
   - Neither onBlur nor onEndEditing fires.
   - The TextInput remains focused.

3. Tapping anywhere on the screen again:
   - The full-size keyboard opens.
   - No new onFocus event occurs.
   - A button or other interactive control is not required.

Additional diagnostic tests in the original application:
- Calling blur() from a timer ends editing without reopening the keyboard.
- Calling blur() or Keyboard.dismiss() from a button's onPress ends editing,
  but the full keyboard has already started opening, producing a brief flash.
- Blurring during outside-touch responder capture prevented that flash
  in the tested screen.

The behavior is also reproducible in the linked standalone project,
which has no third-party runtime libraries.

A screen recording is attached.

MANDATORY Reproducer

https://github.com/lorenzomilesi/react-native-ipad-numeric-keyboard-repro

Screenshots and Videos

Registrazione.schermo.2026-12-04.alle.10.36.49.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    API: KeyboardComponent: TextInputNeeds: Triage 🔍Platform: iOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions