Closed Bug 1901089 Opened 1 year ago Closed 22 days ago

Cannot select task date unless "Start" or "Due Date" is checked (date picker can be opened but chosen date does not take effect)

Categories

(Calendar :: Tasks, defect)

Thunderbird 127
defect

Tracking

(Not tracked)

RESOLVED FIXED
146 Branch

People

(Reporter: bugzilla.mozilla.org, Assigned: m.weghorn)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Steps to reproduce:

  • Create a new task
  • Change "Start" or "Due Date" date (without first checking box)

Another counter-intuative observation:

  • Checking "Due Date" allows you to change the "Start" field, but checking the "Start" field does not allow you to change the "Due Date" field.

Actual results:

Date picker is shown, but after choosing date, the date will revert to the original date.

Expected results:

Chosen date should be entered into the field, and the checkbox should be automatically checked.

I can confirm that (on linux/daily).

Status: UNCONFIRMED → NEW
Component: Untriaged → Tasks
Ever confirmed: true
Product: Thunderbird → Calendar
Summary: Cannot select task date unless "Start" or "Due Date" is checked → Cannot select task date unless "Start" or "Due Date" is checked (date picker can be opened but chosen date does not take effect)

Hello,
I have managed to reproduce this issue using 127.0b5(20240603175044) , 115.11.0(20240508141159) with MacOS 14.4.1 and Windows 10&11 using the same steps from the description.

I also tried to determine if this is a regression and went as far back as build 91.0a1(20210601105321) from 2021-06-01 and still managed to reproduce it with the same steps.

Duplicate of this bug: 1749230
Duplicate of this bug: 1757097
Duplicate of this bug: 1731532

In bug 1731532 some code has been identified, which seems to be responsible for not disabling the date inputs, see https://searchfox.org/comm-central/source/calendar/base/content/item-editing/calendar-item-iframe.js#1291. aDatePickerId is no element but just the id. Also https://searchfox.org/comm-central/source/calendar/base/content/item-editing/calendar-item-iframe.js#1287 might be wrong then.

Duplicate of this bug: 1742911

The updateDateCheckboxes function contains logic
supposed to disable or enable the date/time pickers according
to the state of their corresponding checkboxes.

However, that logic wasn't working because
it tried to set a property directly on the ID of
the corresponding date/time picker element instead
of the actual element.

Make this actually work by retrieving the corresponding element
and setting its "disabled" property.

Assignee: nobody → m.weghorn
Status: NEW → ASSIGNED
Keywords: regression
Regressed by: 1692480
Target Milestone: --- → 146 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/5a81c1541639
Disable date pickers when their checkboxes are unchecked. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 22 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: