SearchKit - Fix editable dates on standalone form
authorColeman Watts <coleman@civicrm.org>
Tue, 4 Jan 2022 03:19:54 +0000 (22:19 -0500)
committerColeman Watts <coleman@civicrm.org>
Tue, 4 Jan 2022 03:21:12 +0000 (22:21 -0500)
For better or worse, the crmDatePicker widget requires a parent <form> element.
Fixes dev/core#3017

ext/search_kit/ang/crmSearchPage.module.js

index bc144c4fc9fec842d6481e94e83c612a2c817623..a11836662e7a7731183037da7aed44dde89fb810 100644 (file)
@@ -10,7 +10,7 @@
         controller: 'crmSearchPageDisplay',
         // Dynamic template generates the directive for each display type
         template: '<h1 crm-page-title>{{:: $ctrl.display.label }}</h1>\n' +
-          '<div ng-include="\'~/crmSearchPage/displayType/\' + $ctrl.display.type + \'.html\'" id="bootstrap-theme"></div>',
+          '<form ng-include="\'~/crmSearchPage/displayType/\' + $ctrl.display.type + \'.html\'" id="bootstrap-theme"></form>',
         resolve: {
           // Load saved search display
           info: function($route, crmApi4) {