Our powerful JS Calendar component
Hi Team, we are facing an issue with the sidebar event filter, whenever we search for an event name we can see an error in the console, and the search filter not working.Once we get this error no feature in the calendar is working like event edit, Next week, or previous buttons
- filter.png (178.57 KiB) Viewed 252 times
Hey Nagesh,
Can you reproduce that behavior in one of our demos? If not, could you please share a sample project with your configuration for us to check?
Just looking at the error "Cannot read properties of null (reading 'match')
So, looking at the code which reported that...
- Screenshot 2023-05-26 at 14.51.32.png (110.25 KiB) Viewed 247 times
Could be record.getValue(field)
isn't yielding anything
If you have a record with no value for that field, that will do it.
Maybe give your field a default value of ''
We should probably use record.getValue(field)?.match(new RegExp(value, 'i'));
Hi, what we should do for the fix?
Until we can fix the FilterField, just ensure that the field you are using always has a value that is not null.