Skip to content

Commit

Permalink
feat: allow hierarchically defined controlConfig for type and subtype
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnetau committed Feb 8, 2024
1 parent 2ac8653 commit 5d7ff8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5d7ff8f

Please sign in to comment.