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

Need a property to keep keyboard open and TextInput focused after performing an action #1867

Open
ridsashabbir opened this issue Feb 11, 2025 · 3 comments
Assignees

Comments

@ridsashabbir
Copy link

ridsashabbir commented Feb 11, 2025

Currently, after a user clicks the Add Comment button, the keyboard closes, and the text input loses focus. This behavior should be updated to reflect the commenting experience on platforms like Instagram. The keyboard should remain open, and the text input should stay focused even after the user adds a comment.

Here is an example usage that we need to recreate

412107919-d7953e83-60ff-40c8-ab7b-1d9b2a923ee7.mov

And that's how it looks in ensemble using workarounds

first.mp4
@sharjeelyunus
Copy link
Member

sharjeelyunus commented Feb 11, 2025

I think if we are adding a property then it should be inside Form instead of TextInput

@amin-nas
Copy link
Contributor

I think if we are adding a property then it should be inside Form instead of TextInput

Let's do both as you are not forced to use Form widget.

@ridsashabbir in the example you shared, is it possible to dismiss the keyboard? if so, how?

@ridsashabbir ridsashabbir assigned kmahmood74 and unassigned amin-nas Feb 14, 2025
@ridsashabbir
Copy link
Author

I think if we are adding a property then it should be inside Form instead of TextInput

Let's do both as you are not forced to use Form widget.

@ridsashabbir in the example you shared, is it possible to dismiss the keyboard? if so, how?

@amin-nas it is possible only if user clicks the back button from his device's hardware, other than this keyboard should remain open

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