This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.
datepicker and ngForm's $pristine state for field #855
Closed
Description
Using the datepicker to select a date appears to be invisible to invisible to a containing ngForm's logic, leaving the field's state in the ngForm with $pristine === true
.
Using ui-bootstrap version 0.5.0, AngularJS version 1.0.7.
For instance:
<form name='myForm'>
<input type='text' datepicker-popup="MMMM-dd-yyyy" ng-model='theDate' />
<span ng-show='myForm.theDate.$pristine'>
Holy clandestine scope updates, Batman! The field still appears pristine!
</span>
</form>
Apologies for not attaching a jsfiddle or plunkr; I can't convince either to play nice this morning.