question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

About calendar problems

See original GitHub issue

Hello, I found some of canendar problems.

1). displayValues is undefined

var calendarDefault = myApp.calendar({
    onChange: function(p, values, displayValues) {
        console.log(displayValues);     // output: undefined
    }
});

2). He could not be opened. I do not understand what is the reason

// can not open
$$(page.container).click(function() {
    calendarDefault.open();
});

// can open
$$(document).click(function() {
    calendarDefault.open();
});

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dantunescommented, Sep 13, 2017

For anyone facing the 2nd issue:

2). He could not be opened. I do not understand what is the reason

// can not open $$(page.container).click(function() { calendarDefault.open(); });

// can open $$(document).click(function() { calendarDefault.open(); });

I found that when you have the closeByOutsideClick option on true (by default on calendar init), the bubling cause by the click event fires the close event of the calendar.

This is fixed by setting a handler with the e.stopImmediatePropagation(); to avoid the bubbling (I’m rewriting the original example from this issue):

$$(page.container).click(function(e) {
    e.stopImmediatePropagation();
    calendarDefault.open();
});

BTW, I’m using Framework7 v1.6.4

0reactions
nirajkaushalcommented, Jan 4, 2018

Thanks @dantunes ☺️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Calendars - Questions, Tricks, Problems and Solutions - Byju's
Calendars - Read on to learn how to solve Calendar Questions in the Logical Reasoning section of ... Type 3 problems: Matching the...
Read more >
Calendar Problems: Concepts & Tricks - Hitbullseye
Most students face difficulty in solving Calendar math problems. So here we try to provide a simplified procedure to solve calendar reasoning problems....
Read more >
Calendar - Aptitude Questions and Answers - IndiaBIX
How to solve Aptitude Calendar problems? ... You can easily solve all kind of Aptitude questions based on Calendar by practicing the objective...
Read more >
Calendar Problems - Onlinemath4all
Odd Days : In a given period, the number of days more than the complete weeks are called odd days. Leap Year :...
Read more >
Calendar Problems Tricks And Shortcuts With Examples
In this article, we will be aiming at various calendar problem's tricks and concepts which is going to save your time while solving...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found