Files
wekan/client/features/forms.js
T
Lauri Ojansivu fd41970ed2 Make existing card dates editable again.
The date form consolidation put the inputs inside a child Blaze template but left the event maps on the parent popup. Blaze does not dispatch child-template events to a parent template event map, so Save, Delete and validation no longer ran after a date existed. Keep the common form and move its common event map onto that form, passing each popup's date state and field-specific callbacks explicitly.

Regression coverage pins the child event ownership and changes a previously stored due date through the browser UI.

Thanks to Alishara and xet7 !

Fixes #6607.
2026-08-17 14:42:00 +03:00

15 lines
695 B
JavaScript

import '/client/components/forms/datepicker.jade';
import '/client/components/forms/inlinedform.jade';
import '/client/lib/inlinedform';
// No separate datepicker.js: the template in datepicker.jade is `editDateForm`.
// Its shared event map lives in client/lib/datepicker.js; each including popup
// passes its own state and store/delete callbacks. The template this file used
// to wire up - a ninth
// copy of the same form, called `datepicker` - was included by nothing and
// could not be opened as a popup either (a popup's template name ends in
// `Popup`), so it went with the duplication.
import '/client/components/forms/datepicker.css';
import '/client/components/forms/forms.css';