-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Focusing on input of GiftedChat #2548
Comments
I missed this issue and created an issue with the same problem. Very interesting bug with This hook works globally for keyboard on all screens, so if GiftedChat was rendered and we keep it in memory then any keyboard opening calls Steps to Reproduce / Code Snippets
|
There is not any way to fix it without injections to I think the best solution is to add a prop |
I added PR #2573 to fix it |
Thank you
…On Mon, 23 Dec 2024 at 20:23, Danil Valov ***@***.***> wrote:
There is not any way to fix it without injections to <GiftedChat />
component in this library.
I think the best solution is to add a prop focusInputWhenKeyboardOpens
(with true value by default) to disable
handleTextInputFocusWhenKeyboardShow and
handleTextInputFocusWhenKeyboardHide calls.
—
Reply to this email directly, view it on GitHub
<#2548 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKLINDIECOQEJADQLZNK73T2HBPMBAVCNFSM6AAAAABQJZRC7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRQGE4TKOJWGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Ok, thanks.
…On Mon, 23 Dec 2024 at 20:39, Danil Valov ***@***.***> wrote:
I added PR #2573
<#2573> to fix
it
—
Reply to this email directly, view it on GitHub
<#2548 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKLINDLTP3AIUEGZUIMTDPD2HBRFXAVCNFSM6AAAAABQJZRC7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRQGIYTCNRZHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Issue Description
On screen with GiftedChat, when try to open a modal with an input field, the focus remains on the input field of the GiftedChat. How can put cursor and tipping on input in Modal?
I tried to use: if (inputRef.current) {
inputRef.current.blur(); // Blur the input manually
} for input of GiftedChat, but i doesn't help
Steps to Reproduce / Code Snippets
on screen with GiftedChat set up listener which shows Modal with input if need it. When Modal appears and i want white in input, keyboard appears but i don't see where i'm typing. When i close Modal i see that it was typing in input of GiftedChat.
Expected Results
If Modal was opened i can typing in input of Modal
Additional Information
The text was updated successfully, but these errors were encountered: