Skip to content

Binding behaviors "validate" and "updateTrigger:'blur'" don't mix #423

@RomkeVdMeulen

Description

@RomkeVdMeulen

I'm submitting a bug report

  • Library Version:
    1.0.0

  • Browser:
    Chrome 55

Current behavior:
When applying both the updateTrigger:'blur' and validate binding behaviors to a binding, the value is validated before it is updated.

See https://gist.run/?id=c533e53e62cb348cc96aa9445bae612a and note when entering characters and blurring the input the validated value is always the previously entered value.

Expected/desired behavior:
The validation should only run after the source value has been updated. This should also work when using validateOnBlur rather than validate in the same scenario. I'm not sure how something like value.bind="myVal & updateTrigger:'blur' & validateOnChange" should be handled - perhaps a warning against this in the documentation would suffice.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions