-
-
Notifications
You must be signed in to change notification settings - Fork 668
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
Fixed TextInput Glitch #4237
base: main
Are you sure you want to change the base?
Fixed TextInput Glitch #4237
Conversation
Edited : Added GIFs comparing the changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use yarn instead of npm. We use yarn.lock instead of package-lock.json here.
When repeatedly pressed on SmartUrlInput , the keyboard would relaunch everytime with each trigger casing a glitch look. Fixed by explicitly blurring the focus on textinput when keyboard is hidden , hence preventing its natural behaviour . Fixes zulip#4233
f50ff7a
to
2dbb6f0
Compare
Oh yeah @Maskedman99 , I got to know this later and forgot to make changes here . |
_keyboardDidHide = () => { | ||
const { textInputRef } = this; | ||
if (textInputRef) { | ||
textInputRef.current.blur(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of now , the keyboard doesn't hide when the user presses on textinput
, instead it maintains its previous state . (As shown in GIF) .
Would love to change according to what makes more sense .
Fixes #4233
Adding GIFs :
Before
After

Would love an review for it !