mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
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.
15 lines
695 B
JavaScript
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';
|