primeng icon indicating copy to clipboard operation
primeng copied to clipboard

PrimeNG Table Filter on Mobile Device [Bug] - Text Input not possible (Android & Chrome)

Open max-x-1000000 opened this issue 5 years ago • 4 comments

[ X] bug report => Search github for a similar issue or PR before submitting [ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap [ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35


**Current behavior**
Trying to apply a text column filter here:
https://www.primefaces.org/primeng/showcase/#/table/filter

Selecting the input field to enter a text field for filtering, the element gains focus, keyboard launches, element looses focus, keyboard closes as does the filter window.


**Expected behavior**
The user should be able to enter text in the filter window on a mobile device.

**Minimal reproduction of the problem with instructions**
1. Go to: https://www.primefaces.org/primeng/showcase/#/table/filter on an Android running the Mobile Chrome browser.
2. Select a text column's filter and try to enter text in the input field

max-x-1000000 avatar Apr 26 '21 12:04 max-x-1000000

This caused by demo classes. If you remove the p-datatable-customers class filter gonna work as expected. You can design your own table using with p-table component.

yigitfindikli avatar Apr 27 '21 11:04 yigitfindikli

This caused by demo classes. If you remove the p-datatable-customers class filter gonna work as expected. You can design your own table using with p-table component.

Negative. Have loaded the demo page on Stackblitz and removed the class. Error still present. See below on Android running Mobile Chrome:

https://stackblitz.com/edit/primeng-tablefilter-demo-35eaqc?file=src/app/app.component.html

Gif animation of problem here: https://file.re/2021/04/27/screen-20210427-155552-1/

max-x-1000000 avatar Apr 27 '21 14:04 max-x-1000000

@yigitfindikli I've made a workaround using drop-downs for each column instead of string filtering. Please do take a look at the stackblitz page above, this bug is very much still alive

max-x-1000000 avatar May 16 '21 14:05 max-x-1000000

This bug is still very much alive. Table filtering is broken as described above. My particular use case is on MSFT Surface tablets, no external keyboard attached for our users.

ux287 avatar Nov 28 '23 20:11 ux287