Skip to content

NumberField always represent as text #7204

@treeindark

Description

@treeindark

Describe the bug
NumberField always represent as text:
yield NumberField::new('price')
->
<input type="text" id="Object_price" name="Object[price]" required="required" inputmode="decimal" class="form-control" value="12,00">

price is float, try with int is same (db is double, or int)

To Reproduce
yield NumberField::new('price')->setNumDecimals(2) ;

(OPTIONAL) Additional context
Index show eg: 12.00, but in form it's a text...

no template overide and in all form it's same

last version : EasyAdmin (4.26.5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions