Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

use formatTarget

Ivan Kuchin19d33052334d
diff --git a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
index c946f0da9a5..6355e9e0262 100644
--- a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
@@ -54,6 +54,7 @@ export default class CustomFieldsController extends Controller {
};
declare readonly formatValue:string;
+ declare readonly formatTarget:HTMLInputElement;
declare readonly dragContainerTarget:HTMLElement;
declare readonly hasDragContainerTarget:boolean;
@@ -119,8 +120,8 @@ export default class CustomFieldsController extends Controller {
.forEach((target) => (target.checked = false));
}
- formatChanged(event:{ target:HTMLInputElement }) {
- this.toggleFormat(event.target.value);
+ formatChanged() {
+ this.toggleFormat(this.formatTarget.value);
}
moveRowUp(event:{ target:HTMLElement }) {