Our powerful JS Calendar component


Post by Nagesh@Apoorva.com »

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
filter.png (178.57 KiB) Viewed 175 times

Post by marcio »

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?

Best regards,
Márcio


Post by Animal »

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
Screenshot 2023-05-26 at 14.51.32.png (110.25 KiB) Viewed 170 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 ''


Post by Animal »

We should probably use record.getValue(field)?.match(new RegExp(value, 'i'));


Post by Nagesh@Apoorva.com »

Hi, what we should do for the fix?


Post by Animal »

Until we can fix the FilterField, just ensure that the field you are using always has a value that is not null.


Post by Animal »


Post Reply