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

IOS Keyboard blinking problem on v-model #31

Open
Kultimov opened this issue May 19, 2021 · 7 comments
Open

IOS Keyboard blinking problem on v-model #31

Kultimov opened this issue May 19, 2021 · 7 comments

Comments

@Kultimov
Copy link

Hello, I have the problems with IOS input, when I entering the text which have the v-model it is blinking and slows down the input. There is the screen video. I just used original package and added v-model.

IMG_6517.MP4

Anyone do you have a solution or any ideas? I have used this project as the core, and it is on production of App Store.

@RishabhKarnad
Copy link
Contributor

hi @Kultimov, this is a known issue: GeekyAnts/vue-native-core#305

For now, you can use :value and :on-text-change instead of :v-model to fix the issue

@Kultimov
Copy link
Author

Hi @RishabhKarnad, I have changed v-model statement with (:value and :on-change-text) and (:value and :OnChangeText). And added to fixed Label Input.
<nb-input :value="username" :onChangeText="(text) => (username = text)" />
This not solve the issue keyboard also blinking on IOS. There is one of the simple solution just to use onChangeText without value and no blink will be, but in some cases we need to set default value or first value. Is this a bug?

@Kultimov
Copy link
Author

Kultimov commented May 24, 2021 via email

@RishabhKarnad
Copy link
Contributor

@Kultimov does this happen with React Native TextInput as well, or only with NativeBase Input (nb-input)?

@gjdipietro
Copy link

Try

<nb-input 
  :defaultValue="username"
  :onChangeText="(input) => (username = input)"
data() {
  return {
    username: "myusername"
  }
}

@josemiguel02
Copy link

Try

<nb-input 
  :defaultValue="username"
  :onChangeText="(input) => (username = input)"
data() {
  return {
    username: "myusername"
  }
}

It really worked for me, thanks !!

@Kultimov
Copy link
Author

Kultimov commented Aug 8, 2021 via email

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

4 participants