Skip to content

SearchInput not working (onSubmitEditing, onEndEditing, onDismiss) #3759

Open
@juliaoden

Description

@juliaoden

Description

The events onEndEditing, onSubmitEditing and onDismiss are not working on the SearchInput Component.
Even with returnKeyType none of these events get fired. The Keyboard gets dismissed but nothing more happens.

Related to

  • Components
  • Demo
  • Docs
  • Typings

Steps to reproduce

  1. Go to https://snack.expo.dev/@juliaoden/searchinput_reactnativeuilib
  2. Enter some text in the SearchInput Component on the device
  3. Hit enter and see how only the keyboard gets dismissed and no log ist printed
  4. Try usingone of the follwoing keyBoardTypes ('done' | 'go' | 'next' | 'search' | 'send') to see that nothing changes
  5. Notice that deleting the text with x-Icon also doesn´t show any logs

Expected behavior

I expect either onSubmitEditing or onEndEditing to be fired, when the user finished typing, so that a search can be triggered.

Actual behavior

Nothing happens

Environment

  • React Native version: ^0.79.3
  • React Native UI Lib version: ^7.43.0

Affected platforms

  • Android
  • iOS
  • Web (not tested)

Metadata

Metadata

Assignees

No one assigned

    Labels

    buga bug in one of the components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions