You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user can type/use the arrow keys to select a value in the dropdown list.
In the examples on the primereact site (https://primereact.org/dropdown/), the currently focused item ius highlighted with a light gray background.
I can see that keyboard interactions are still captured and the data-p-focused attribute on each item does update, however the CSS classes are not updating. The fix will be to ensure the classes update on focus change
gcko
added a commit
to gcko/primereact
that referenced
this issue
Sep 4, 2024
Describe the bug
A user can type/use the arrow keys to select a value in the dropdown list.
In the examples on the primereact site (https://primereact.org/dropdown/), the currently focused item ius highlighted with a light gray background.
The tailwind example does not highlight the focused item though (https://stackblitz.com/run?file=src%2FApp.jsx).
This despite a properly defined pass through object:
Reproducer
https://stackblitz.com/run?file=src%2FApp.jsx
System Information
System:
OS: Linux 6.8 TUXEDO OS 2 22.04.4
CPU: (16) x64 AMD Ryzen 7 5700U with Radeon Graphics
Memory: 5.14 GB / 30.73 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 22.6.0 - /home/linuxbrew/.linuxbrew/bin/node
npm: 10.8.2 - /home/linuxbrew/.linuxbrew/bin/npm
Browsers:
Chrome: 127.0.6533.119
npmPackages:
primereact: 10.8.0 => 10.8.0
react: 18.3.1 => 18.3.1
tailwindcss: 3.4.7 => 3.4.7
Steps to reproduce the behavior
Expected behavior
The currently focused item (the one that will be selected after pressing enter) has a light gray background
The text was updated successfully, but these errors were encountered: