Closed ismaail closed 4 weeks ago
Please provide an actual reproduction repository that we can access. Let us know once you've added that and we can reopen this issue.
Can also confirm that we've run into this bug in production. Looking into a fix.
@zepfietje Is there any reason not to use backticks to surround the record title when used in a Alpine attribute?
Switching to the following:
:alpine-hidden="($group?->isCollapsible() ? 'true' : 'false') . ' && isGroupCollapsed(`' . $recordGroupTitle . '`)'"
isGroupCollapsed(`{{ $recordGroupTitle }}`),
Resolves this issue.
No particular reason I can think of, @rossbearman. Thanks for creating a PR. 👍
Package
filament/tables
Package Version
v3.2.86
Laravel Version
v11.10.0
Livewire Version
v3
PHP Version
PHP 8.3.8
Problem description
Table Group by Title that contains single quote shows js errors in the console
Expected behavior
No js errors in the console
Steps to reproduce
Notice: this is just a simplified example, the actual code has a Group by relational Model, this simplified example and the actual production code both throw same error in the console.
Reproduction repository
https://github.com/ismaail/filament_issue_13153
Relevant log output
Donate 💰 to fund this issue