Event color after click

I have event scheduler set up. When I click on first event it turns to blue background. When I click on another event then that event turns out to blue too. Each time I click on event last two events that were clicked are blue. Why not only last clicked event turns out to blue background? I want to fix that issue.

I figured out the problem. Backogrund color of event was set up using jquery css method rather than using native library way. Problem fixed.

I’m glad to know that the issue is solved.
Don’t hesitate to ask if you need help in the future.