katemihalikova / ion-datetime-picker

Date and/or time picker for awesome Ionic framework
MIT License
169 stars 101 forks source link

Ionic 3 : Error : this.input.isFocus is not a function at DatetimePickerDirective.open #119

Open sreekanth-karini opened 6 years ago

sreekanth-karini commented 6 years ago

Hi, I'm using this datetime-picker (Ionic 3v), followed Readme instructions as follows

  1. Installed in my project using npm
  2. Imported it in my app module
  3. Used it in my component screen shot 2017-09-23 at 4 26 59 pm

But when i click on ion-datetime getting Error like below

this.input.isFocus is not a function at DatetimePickerDirective.open I went to picker.directive.js file and removed if (this.input.isFocus() || this.input._disabled) { return; } and this.input._fireFocus(); and this.input._fireBlur(); lines from code, Then it worked means it displayed the date picker perfectly But when i select date and click on Done button, date value not coming and also when i re-open date picker it is showing NaN in all dates. Can you please check this? After re-open date picker by click on it opened like this: screen shot 2017-09-23 at 4 23 13 pm

roggerlacerda commented 6 years ago

Same thing here