Comments (5)
Hello @joristackaert, I get your problem now, I assigned an ID with numbers only but in string type, and I encountered your error. Check my latest commit :)
evo-calendar/evo-calendar/js/evo-calendar.js
Lines 810 to 820 in eec2e88
The problem is, when the event's ID is like this { id: "1234" }, in the DOM when it's assigned it looks like this data-event-index="2313213". So when you get the event id in the element ($(el).data('eventIndex')), it became a number instead of string so the index would be -1
from evo-calendar.
Hello, I tried changing the event IDs into numbers (not strings), and it's working fine. 🤔
Or am I missing something? 😅
from evo-calendar.
well now i'm forcing it to have an id that otherwise would come from the Database. unless something weird happens when encoding my viewmodel to JS object.
Hmm I don't really have a clue :/. maybe it's only on my end.
from evo-calendar.
Oww so that is the problem, I've been writing so much c# and typescript i forgot javascript sees that object as a number instead of a string.
thx 😉
if i have time on my hands i'll add some changes i've made to the evocalendar as pull requests.
from evo-calendar.
Sure, pull requests are welcome! Also, goodluck with your projects 🙂
from evo-calendar.
Related Issues (20)
- Uncaught TypeError: Cannot read properties of null (reading 'find') HOT 1
- EvoCalendar can not be destroy
- How to add events with time? HOT 4
- Event Header Wrong
- Monthly event list instead of day
- Feature Request - Is it possible to show weeks or 2 weeks range in calendar ?
- format.toValue and format.toDisplay undefined
- How to get current month? HOT 1
- How I can get all events for the month? HOT 1
- Fetch events from db? HOT 4
- Style issue with iPad tablets HOT 1
- change gregorian calendar to solar hijri calendar
- How can I make it so that the months can be switched by the scroll wheel?
- Pleaaaase Add Solar Calendar (Jalai Hijri) Too
- selectYear functionality not working HOT 2
- event title limit HOT 1
- add language Korean
- In safari, the title part works as NaN.
- Show all the events from the selected month HOT 1
- adding a czech language/translation HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evo-calendar.