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

Event : selectEvent | activeEvent.values not equal the selected event #24

Closed
joristackaert opened this issue Aug 20, 2020 · 2 comments
Closed

Comments

@joristackaert
Copy link
Contributor

after using

$('#calendar').on('selectEvent', function (event, activeEvent) {
console.log(event.target);
console.log(activeEvent.description);
console.log(activeEvent.badge);
});

It works fine if u have 1 event but when u have more then 1 event on the same day its values "description..." is always the same value of the first event in the eventlist and not the selected one (the second one). unless this is intentonal.

image

I can fix it by selecting the .target childnode childnode childnode description.data but it's a bit of work.

Regards
Best calander ever btw.

@joristackaert
Copy link
Contributor Author

joristackaert commented Aug 20, 2020

nevermind i was a bit to fast. i uncommented your console.log in your code and i saw it's based on ID. and they had the same ID. making them show the same event. sorry stupid of me. you can remove this issue.

maybe add : id: '4hducye', // Event's id (required, for removing and selecting event) :)

@edlynvillegas
Copy link
Owner

Hi @joristackaert, thank you for the appreciation! 🙂

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