Skip to content

Cannot enter the value ".5" in number cells #2279

Closed
@delavager

Description

@delavager

This is a little weird, but I tested it on the http://ui-grid.info/docs/#/tutorial/201_editable demo and it produces the same result in the "Age" column.

Basically I want to be able to enter the value ".5" without preceding it with a 0. If I, or a user, types "." nothing happens, no value is entered and no error. If I start with a 0 and type "0.5" it works fine. This is really silly but my users are just going to cry foul when they try and type ".5".

My set up is using the row editing feature and has enableCellEditOnFocus: true.
The columns have a cellFilter of 'number : 2' (which shouldn't matter as that only applies to the non-editable template) and are aggregated to a footer for a column total.

I also have a calculated column where each object has a function called "TotalCalc()" which aggregates 5 values across the row. At first I thought it was this, but removing the aggregations did not fix the problem.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions