You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 2, 2018. It is now read-only.
when i input value 2017-09-05 and reopen the datepicker ,the date picker still show the last value ;
eg.
I have the solution,
Please update datetime-picker.directive.ts' function ngOnChanges. when user modifying value ,you should be call setInputElDateValue、updateDatepicker
eg.
Go to datetime-picker.directive.js file and find below code (in i have this on line 273 check yours.) component.defaultValue = _this.defaultValue || _this.el['dateValue'];
simple change the assigned values to _this.el['dateValue'] || _this.defaultValue ;
it worked for me perfectly because i was using the default-value.
also similar change in ts file i.e datetime-picker.directive.ts
in Above fix we prefer the Element value rather then default value .. i.e if value is change by user then popup 'll display from user provided value Otherwise/else default value.
Thanks @wqdjl for hint......
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
when i input value 2017-09-05 and reopen the datepicker ,the date picker still show the last value ;
eg.
I have the solution,
Please update datetime-picker.directive.ts' function ngOnChanges. when user modifying value ,you should be call setInputElDateValue、updateDatepicker
eg.
@jiren @lukaselmer @Krisa @boban984
The text was updated successfully, but these errors were encountered: