$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?
1 Reply
Dustin
DustinOP3w ago
Update: I fixed it this way for now: public function mount(Request $request) { if ($request->has('search')) { $this->tableSearch = $request->get('search'); } }
Want results from more Discord servers?
Add your server