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

Dropdown auto close in mobile when keyboard is open #2422

Closed
RFormigao opened this issue Nov 12, 2021 · 15 comments
Closed

Dropdown auto close in mobile when keyboard is open #2422

RFormigao opened this issue Nov 12, 2021 · 15 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@RFormigao
Copy link

RFormigao commented Nov 12, 2021

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)
Please fork the codesandbox below and create a case demonstrating your bug report. Issues without a codesandbox have much less possibility to be reviewed.

https://codesandbox.io/s/6660q

Current behavior
When I click to open the dropdown on mobile, my keyboard appears and the dropdown closes

Expected behavior
The dropdown is expected to stay open and I'll be able to search in the filter input

  • React version:
    17.0.2

  • PrimeReact version:
    7.0.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    [Android]

@jaquepaschoal
Copy link

Same problem

@melloware
Copy link
Member

Is this new with 7.0.0? Meaning did it work before?

@RFormigao
Copy link
Author

I can't tell you, I only tested it on version 7.0.0

@melloware
Copy link
Member

This looks exactly like similar issue we had in PrimeFaces: primefaces/primefaces#7075

@melloware
Copy link
Member

OK see my PR: #2428

@RFormigao
Copy link
Author

Thanks, do you know when this PR can be accepted?

@melloware
Copy link
Member

Nope that is up to PrimeTek.

@brunomaffei
Copy link

Same problem

@mertsincan mertsincan self-assigned this Nov 18, 2021
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Nov 18, 2021
@mertsincan mertsincan added this to the 8.0.0 milestone Nov 18, 2021
@mertsincan
Copy link
Member

Hi,

I could not reproduce this issue on my mobile device, but I made a change regarding this issue. @melloware's PR changes the scroll behavior. If this issue is still not resolved, I'll take another look at this PR.

@melloware
Copy link
Member

Just to follow up for those following this thread it depends on your mobile device, screen size, and whether a scroll bar is currently being displayed...

I did the following tests.

My App:
Galaxy S10 - It didn't work.
Galaxy S20 - It didn't work.
Iphone (Video 2) - It didn't work.

PF Showcase:
Galaxy S10 (Video 1) - It didn't work.
Galaxy S20 - It didn't work.
Iphone - It worked.

Hopefully @mertsincan fix works and is better than my solution!

@mertsincan mertsincan modified the milestones: 8.0.0, 7.1.0 Dec 13, 2021
@melloware
Copy link
Member

melloware commented Dec 19, 2021

Have any of you tried this with 7.1.0 now that the fix is out? @RFormigao

@RFormigao
Copy link
Author

Hi, sorry for the delay. I tested it on two devices, on the iphone it worked correctly.

On android it didn't work.

Both using google chrome as browser

@RFormigao
Copy link
Author

I updated the sandbox to version 7.2.0

@melloware
Copy link
Member

@RFormigao so it gets visibility I suggest maybe you open a new ticket reporting your latest results with 7.1.0 and link this ticket.

@RFormigao
Copy link
Author

Okay, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants