-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Table filter menu does not work on mobile, closes virtual menu #11532
Comments
Hi, I couldn't replicate the problem. Could you please give some instructions? Regards |
Hi, to replicate the problem open the stackblitz link on the mobile and click on preview, you will see that clicking on the filter opens the keyboard, right after it closes, then it is not possible to do the search. you can check this link I recorded the screen to replicate the bug: |
Hi @cetincakiroglu, it is possible to easily reproduce the error on android devices, including in the official table filer example (https://www.primefaces.org/primeng/showcase/#/table/filter). The root cause is OverlayPanel component. Since the table filters in the mode menu are displayed in an overlay panel. The problem details was extracted from #11401: "If an OverlayPanel contains an input element (like a text field), the OverlayPanel is closed when clicking into the text field. The behavior is caused by the onWindowResize() event handler method inside the overlaypanel.ts. When clicking into an input element, the mobiles keyboard is shown, causing a resize of the mobile browser window. The onWindowResize() event handler method is called, which closes the OverlayPanel, and the also the keyboard is hidden again, because the input element isn't focused anymore (due to it being hidden)." The same issue was fixed in dropdown and multiselect #7030 checking if is android device before call hide() function and could also be used in overlaypanel:
@th14go , as workaround, #7260 @BlackfootPL created a directive that blocks the 'resize' event on mobile devices. See https://stackblitz.com/edit/primeng-mobile-dropdown-fix |
Duplicate of 11567 |
The problem was solved ? |
@mertsincan wonder !, Thanks, how do i get this fix, i'm on primeng 13.3.3 ? |
Unfortunately, you need to wait for the next release. |
You sure can do it, |
Current behavior
When using the table filter menu on mobile, it closes the virtual keyboard
Expected behavior
The correct behavior was to keep the virtual keyboard open
Minimal reproduction of the problem with instructions
Using the table without responsive mode we were able to check the bug in the table, clicking on the filter quickly opens and closes the virtual keyboard.
https://stackblitz.com/edit/primeng-tablefilter-demo-ltcvgh?file=src/app/app.component.ts
13.2.3
13.3.3
Chrome 101X
Please tell us about your environment:
Ubuntu 22.04
The text was updated successfully, but these errors were encountered: