Skip to content

Search hides calendar dates permanently and breaks calendar grid layout #45

@Parvathy-pp

Description

@Parvathy-pp

Describe the bug

When using the search feature, calendar date cells that do not match the search query are hidden using display: none. However, when the search input is cleared, those hidden cells do not reappear properly. This breaks the calendar grid layout and causes missing dates to remain invisible.

This results in an incomplete calendar view and affects usability.

To Reproduce

Steps to reproduce the behavior:

Open My-Calendar

Add events on a few different dates

Type a search term that matches only one event

Observe that other date cells disappear

Now clear the search input

Actual behavior

Some calendar date cells remain hidden or the grid layout remains broken.

Expected behavior

All calendar date cells should reappear normally when the search input is cleared, restoring the full calendar grid.

Desktop (please complete the following information):

Additional context

The issue occurs because the render function hides cells using cell.style.display = "none" but does not properly reset visibility when search is cleared.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions