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

Pignose calendar + input = ReferenceError: models is not defined #47

Closed
OinkEsFabuloso opened this issue Sep 3, 2017 · 3 comments
Closed
Assignees

Comments

@OinkEsFabuloso
Copy link

Hi!

When relating a calendar with an input as:

<input type="text" id="text-calendar" class="calendar" />

$(function() {
$('input.calendar').pignoseCalendar({
modal: true,
format: 'YYYY-MM-DD' // date format string. (2017-02-02)
});
});

I the user clicks on the input text box, pignose's modal appears, the user can now choose a date and the date is written into the input text box. So far so good.

If the user decides he wants a different date, if he clicks again on the input text box nothing happens. The Javascript console shows the following error message:

ReferenceError: models is not defined

This is true even in the example title Input type provided at:
https://www.pigno.se/barn/PIGNOSE-Calendar/

Is this the expected behaviour?

Thanks!

@KennethanCeyer
Copy link
Owner

Hi @OinkEsFabuloso

I understand the issue that you mentioned And noticed this error message in the demo page.

I will fix this issue within today.

Thank you.

@KennethanCeyer
Copy link
Owner

Hi @OinkEsFabuloso again 😄
The issue is fixed at v1.4.22 version.
I will add automation testing for preventing recurrence these errors (including e2e)
Thank you.

@OinkEsFabuloso
Copy link
Author

Thanks!! Works like a charm 👍

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

No branches or pull requests

2 participants