Skip to content

Null float entity field converts to NaN on client #2

@RWOverdijk

Description

@RWOverdijk

Avekonst commented 3 minutes ago
I've created entity class with @type('float') fields. When I firstly get instance of this entity I don't fill some of this fields, save it and then try to reload. While entity populates on client "typer" try to cast float by 'parseFloat' function so in case of null it returns NaN, but for other types null. Aurelia binding goes into an infinite loop while it tries to compare old and new NaN values (newValue !== oldValue - return true if both NaN).

SpoonX/aurelia-orm#289

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