smDateTimeRangePicker icon indicating copy to clipboard operation
smDateTimeRangePicker copied to clipboard

close-on-select : picker do not return date in the correct format

Open lashisu opened this issue 7 years ago • 3 comments

When you chose "close-on-select", picker do not return in the correct format.

This is the plunker url for demo where I have produced the issue. Please & resolve this issue. http://plnkr.co/edit/P94pfjosot1gOxcwp1Ui?p=preview

lashisu avatar Dec 28 '16 13:12 lashisu

I've got the same issue. Maybe the popup has been closed without executing some callbacks, I guess. Please take a look.

duykhanh21 avatar Apr 28 '17 03:04 duykhanh21

This line https://github.com/mominsamir/smDateTimeRangePicker/blob/master/src/picker.js#L268 seems to be the defect cause of this issue.

No need to set model value again after executing callback self.$scope.dateSelectCall({date:d}); Comment it out works for me :laughing:

duykhanh21 avatar Apr 28 '17 07:04 duykhanh21

I had the same issue but with mode="date" and after selecting a date choose cancel you get the wrong format.

@duykhanh21 , Commenting this line won't work for me. Can you please provide me more settings you choose.

@mominsamir , bro do you even reply?

Can anybody please help me?

rahimnagori avatar Nov 02 '18 13:11 rahimnagori