Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard does not come up when I tap on textfield #127

Open
tesddev opened this issue Jul 8, 2023 · 0 comments
Open

Keyboard does not come up when I tap on textfield #127

tesddev opened this issue Jul 8, 2023 · 0 comments

Comments

@tesddev
Copy link

tesddev commented Jul 8, 2023

Even after I set isSearchEnable to true, keyboard fails to come up. See code snippet below.

let senderStateTextField: TesDropDownTextField = {
        let textField = TesDropDownTextField()
        textField.isSearchEnable = true
        textField.placeholder = "Origin"
        return textField
    }()

I then later set the textfield to become firstresponder in the listWillAppear delegate method

senderStateTextField.listWillAppear {
        self.senderStateTextField.becomeFirstResponder()
 }

This brought up the keyboard but brought along several bugs with it.

  1. When I start typing, it creates another list up.
  2. When I select, it dismisses only the first list and leaves the original one
  3. When I click on any of the list in the original list that fails to dismiss, I get an "index out of range error"
  4. Tapping outside doesn't also dismiss the original list.

video demo below:

RPReplay_Final1688850414.MP4

If anyone has a correct way of using the search feature, please help me.

@tesddev tesddev changed the title Kayboard does not come up when tap on textfield Kayboard does not come up when I tap on textfield Jul 8, 2023
@tesddev tesddev changed the title Kayboard does not come up when I tap on textfield Keyboard does not come up when I tap on textfield Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant