❗[Bug/UX Issue] select filter does not reflect selected value when using queryString() in PowerGrid #1913
nguyenhoang24695
started this conversation in
BUG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Livewire PowerGrid version
6.3.1
Livewire version
3.6.3
Laravel version
12.9.2
Which PHP version are you using?
PHP 8.4
Which Theme are you using?
Tailwind
Have you published the resource files and customized them? (php artisan vendor:publish)
No
What is the problem?
When using ->queryString() in a PowerGrid table with a select filter column, the table correctly filters the data based on the query string in the URL (e.g., ?filters[status][0]=1), but the filter dropdown still displays "All" instead of the selected value. This causes confusion for users, as they cannot visually confirm which filter is currently applied.

Code snippets
protected function queryString(): array
{
return $this->powerGridQueryString();
}
...
public function filters(): array
{
...
Filter::multiSelect('status_text', 'status')->dataSource($statuses)->optionLabel('label')->optionValue('value'),
}
How do you expect it to work?
When queryString() is enabled and a filter value is present in the URL, the filter dropdown should display the corresponding label (e.g., "Submitted" for status=1). This ensures the UI is consistent with the filtered data, improving clarity and user experience.
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions