Skip to content
This repository has been archived by the owner on Apr 30, 2018. It is now read-only.

multiCheckbox reset is not working #87

Open
maxime-beguin opened this issue Feb 17, 2016 · 1 comment
Open

multiCheckbox reset is not working #87

maxime-beguin opened this issue Feb 17, 2016 · 1 comment

Comments

@maxime-beguin
Copy link

Hi,

I tried using multiCheckbox which works great except that the reset is not working. Calling the resetModel() method leave checkboxes checked.

It's a little bit tricky, it appears that when calling resetModel, formly set multicheckbox property (from formly model) to undefined, then call resetFormControl on the multicheckbox form which leads to multicheckbox setModel restoring the model before AngularJS digest phase (so before receiving the watch handler on the model).
Thus model is restored before having the chance to be reset.

Have you an idea on how to resolve it ?

Cheers.

@ajingopi
Copy link

Any solutions for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants