ng2-ui / datetime-picker

Angular2 DateTime Picker
https://ng2-ui.github.io/#/datetime-picker
MIT License
121 stars 62 forks source link

TypeError: Cannot read property 'fullName' of undefined #7

Closed neelsbr closed 8 years ago

neelsbr commented 8 years ago

date_error

I have referred your test folder example and implemented this

i have used below codes in system config js map['ng2-datetime-picker'] = 'node_modules/ng2-datetime-picker/dist'; packages['ng2-datetime-picker'] = {main: 'index.js', defaultExtension: 'js'};

In my component used like this import {DateTimePickerDirective} from "ng2-datetime-picker";

html code: <input [(ngModel)]="date2" ng2-datetime-picker />

<input [(ngModel)]="date2" ng2-datetime-picker /><br/>

whenever I tap calendar icon , I am getting below error and calendar displayed partially( the day only displaying)

platform-browser.umd.js:2306 EXCEPTION: Error in ./DateTimePickerComponent class DateTimePickerComponent - inline template:6:11 platform-browser.umd.js:2306 ORIGINAL EXCEPTION: TypeError: Cannot read property 'fullName' of undefined

image

Can you please help me on this

allenhwkim commented 8 years ago

It seems your original date in input field is not parsable date. e.g. 'Jan 01 2016'. It seems fine with me with Chrome. Could you create a plunker example for your issue like this? https://plnkr.co/edit/lbNRAh?p=info

Never mind, it seems not working on windows IE. sigh IE..

image

allenhwkim commented 8 years ago

Updated with 0.4.1. Havent' tested with IE.

allenhwkim commented 8 years ago

I think this is fixed. Please reopen if not fixed