smDateTimeRangePicker icon indicating copy to clipboard operation
smDateTimeRangePicker copied to clipboard

Date Picker Highlighting

Open tcasey opened this issue 8 years ago • 6 comments

When setting a date value to the ng-model the date picker does not show it as selected but the value in the input field is the correct value. For example if I've set thg ng-model to 25-December-2016 the input field will show 25-December-2016 and the date picker itself will show the moment() value (ex: the date of your browser).

tcasey avatar Dec 08 '16 16:12 tcasey

After some investigation I found that updating the currentDate from within the PickerCtrl.prototype.configureNgModel allowed me to update the date-time-header however I'm still having issues with updating the sm-calender. From what I've seen so far it seems that because my application has to make a couple API calls to get the ng-model value the directive loads up before it's on the DOM and never updates the initialDate or currentDate with that value. Thus leading to a date picker that doesn't highlight. (you can replicate this by applying a setTimeout to the ng-model value)

I'm going to look into this a little bit more and send in a PR if I can figure it out. Any help or direction would be greatly appreciated!

tcasey avatar Dec 09 '16 05:12 tcasey

Nerd.

devlemire avatar Dec 09 '16 21:12 devlemire

duplicate of #76

mominsamir avatar Dec 10 '16 06:12 mominsamir

I think this requires some modification in calender ctrl to reflect manually updated date .

mominsamir avatar Dec 10 '16 06:12 mominsamir

No, this is a different issue with the date picker. I have made a fix for it and will make a pull request.

tcasey avatar Dec 10 '16 19:12 tcasey

sure

mominsamir avatar Dec 10 '16 19:12 mominsamir