Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time picker not fired in demo too #225

Open
biju001 opened this issue Oct 2, 2017 · 2 comments
Open

time picker not fired in demo too #225

biju001 opened this issue Oct 2, 2017 · 2 comments

Comments

@biju001
Copy link

biju001 commented Oct 2, 2017

i just downloaded full zip and open demo.html. time picker not work. not even fired. i tried newly even fresh html file
```
var dialog = new mdDateTimePicker.default({
type: 'time'
});
var toggleButton = document.getElementById('id-of-button-to-open-it');
toggleButton.addEventListener('click', function() {
dialog.toggle();
});

i got error message in consol

Uncaught TypeError: _draggabilly2.default is not a constructor
at mdDateTimePicker._dragDial (mdDateTimePicker.js:1186)
at mdDateTimePicker._initTimeDialog (mdDateTimePicker.js:519)
at mdDateTimePicker.show (mdDateTimePicker.js:162)
at mdDateTimePicker.toggle (mdDateTimePicker.js:188)
at HTMLButtonElement. (demo.html:90)



this way also not work. can you check please. 
                      
@puranjayjain
Copy link
Owner

Did you download all the necessary dependencies with it?

@biju001
Copy link
Author

biju001 commented Oct 2, 2017

yes i download full package md-date-time-picker-master.zip from there i took js and css from dist folder. even your demo.html time picker not work. if you check then you can understand.

if i press default from time dialog it is not fired. and consol show error

  | _dragDial | @ | mdDateTimePicker.js:1186
-- | -- | -- | --
  | _initTimeDialog | @ | mdDateTimePicker.js:519
  | show | @ | mdDateTimePicker.js:162
  | toggle | @ | mdDateTimePicker.js:188
  | (anonymous) | @ | demo.html:90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants