Bug when editing decimal values

Hello,

I trying to attach a model with a decimal pivot value.
The value looks good in the table, but it does not when editing it (Cf. image).

Here is my code :
TextInput::make('price')
                ->numeric()
                ->mask(
                    fn (TextInput\Mask $mask) => $mask
                        ->numeric()
                        ->decimalPlaces(2)
                        ->decimalSeparator(',')
                        ->mapToDecimalSeparator([','])
                        ->normalizeZeros()
                        ->padFractionalZeros()
                )
                ->required()
                ->label('Prix (par dm²)')
                ->suffix('€'),


The value is correctly stored in the database (structure : decimal(6,2) )
Thanks !
Screenshot_2023-03-03_at_17-51-45_Modifier_Base_-_Laravel.png
Was this page helpful?