Skip to content

[Calendar] Event editor shows "00:00" time fields when "All Day" toggle is enabled #9817

@TheHappyFella

Description

@TheHappyFella
  • This is not a feature request (existing functionality does not work, not missing functionality).
    I will request features on forum or via support.
  • I've searched and did not find a similar issue.

Describe the bug
In the calendar event editor, when the "All Day" toggle is enabled, the time input fields (From/To) still display "00:00" times instead of
being hidden. This is confusing and clutters the UI since time is irrelevant for all-day events.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Calendar app
  2. Create or edit an event
  3. Enable "All Day" toggle
  4. See From/To time fields still showing "00:00"

Expected behavior
When "All Day" toggle is enabled, the time input fields should be hidden completely, showing only the date fields.

Desktop (please complete the following information):

  • OS: All platforms (iOS, Android, Web, Desktop)
  • Desktop Environment, if applicable (on Linux): N/A
  • Version: Current master

Additional context
Root cause:
src/calendar-app/calendar/gui/eventeditor-view/EventTimeEditor.ts lines 80-87 and 109-116 - the TimePicker components are disabled when isAllDay is true but still rendered, showing "00:00" times.

Proposed fix:
Hide TimePicker components entirely when isAllDay is true by conditionally rendering them only when
!attrs.editModel.isAllDay.

I have a working fix ready to submit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbroken functionality, usability problems, unexpected errorstopic: calendar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions