From 5d7ff8f9fd8cca19e4af7f09ad0d4e98cfc0f031 Mon Sep 17 00:00:00 2001 From: James Lucas Date: Thu, 8 Feb 2024 17:22:43 +1100 Subject: [PATCH] feat: allow hierarchically defined controlConfig for type and subtype --- src/js/control.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/control.js b/src/js/control.js index 618b9bee3..4700747a3 100644 --- a/src/js/control.js +++ b/src/js/control.js @@ -50,7 +50,7 @@ export default class control { control.controlConfig = {} } const classId = this.subtype ? this.type + '.' + this.subtype : this.type - this.classConfig = jQuery.extend({}, control.controlConfig[classId] || {}) + this.classConfig = jQuery.extend({}, control.controlConfig[this.type] || {}, control.controlConfig[classId] || {}) // if subtype, update the config type for injecting into DOM elements if (this.subtype) {