formly-js / angular-formly

JavaScript powered forms for AngularJS
http://docs.angular-formly.com
MIT License
2.22k stars 405 forks source link

Reset form with ui-select removes model variables #586

Open Bedo81 opened 8 years ago

Bedo81 commented 8 years ago

If I add defaultValue or add value to detail and click reset button, it clears the variables and set them back on after second click.

Please see the JS Bin and click reset button.

http://jsbin.com/rapamupuze/1/edit?js,output

Thank you

tuckerjt07 commented 8 years ago

To me that behaves as I would expect. That's doing a complete reset on the form, ie a clear, not a reset back to default.

Bedo81 commented 8 years ago

It works differently on other controls. It doesn't remove the attribute.

http://jsbin.com/qatiwafaxo/1/edit?js,output