Skip to content

Commit

Permalink
Merge pull request #1516 from lucasnetau/feat/1-controlconfig
Browse files Browse the repository at this point in the history
Allow hierarchically defined controlConfig for type and subtype
  • Loading branch information
kevinchappell authored Feb 9, 2024
2 parents 649a9f8 + 5d7ff8f commit f32854b
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 f32854b

Please sign in to comment.