angular-strap icon indicating copy to clipboard operation
angular-strap copied to clipboard

Timepicker seems to cause ng-dirty status on loading of form

Open rjnichols opened this issue 13 years ago • 4 comments

This issue seems to be visible even on the angular-strap website demo of the time picker - the runtime class of the form is "form-horizontal well ng-valid ng-dirty".

In my application adding a timepicker field to a form causes it to be dirty upon loading.

rjnichols avatar Apr 20 '13 12:04 rjnichols

We could try to use $setPristine for this but it is still on the unstable branch.

mgcrea avatar May 14 '13 17:05 mgcrea

I think this is because the code in timepicker.js hooks up the changeTime.timepicker handler before init the timepicker, the timepicker fires this event when init as it sets the default.

I would suggest that the line element.on('changeTime.timepicker', function(ev) { Be moved to after the line element.timepicker($strapConfig.timepicker || {});

Hope that helps!

ocomsoft avatar Jul 11 '13 00:07 ocomsoft

The AngularStrapv2.0.0 has been released with a new version of this plugin. The former version is now both deprecated and unsupported.

Please try to reproduce your issue against the master branch.

Thanks!

mgcrea avatar Jan 28 '14 11:01 mgcrea

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 27 '19 03:01 lock[bot]