Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Programmatic updates of the model in ngModelOptions #6994

Closed
@shahata

Description

@shahata

Sadly there are still issues with programmatic updates of the model in the new ngModelOptions:
http://plnkr.co/edit/C8IzuF?p=preview

  • In the first input, we have a debounced update. Try to start typing in the input and then click the clear button. The debounced is canceled alright, but the value in the input is not reset. :( This obviously happens because the model update did not reach the view since the model was not actually changed. Maybe this can be fixed by forcing a view update when debounce is canceled?
  • In the second input, we have an {updateOn: 'focus'}, so if we enter a value and then click the clear, the value also is not reset. This is essentially the same issue as the previous one, but here I don't have a good suggestion because we don't have anything like the $cancelDebounce() to indicate us to force the view change.

What do you think?

I'll be glad to take this PR, but first I think we should discuss a strategy of how to solve it.

Metadata

Metadata

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