FilamentF
Filament14mo ago
Dustin

$tableSearch query string removes leading zero's

When i enter a search term like 100.100 it formats it to 100.1, when i do it with 100.101 it stays the same (what is good).

I use this code:
/**
     * @var ?string
     */
    #[Url]
    public $tableSearch = '';


The strange part is that i use persistSearchInSession, when i remove the code above it just works with those numbers. When i add it back it removes the leading zero's, so it has to do something with the query string.

What is a solution for this?
Was this page helpful?