Skip to content

Commit a9bb2e3

Browse files
committed
fix(RangeSlider, Rating): data-coreui-config doesn't work
1 parent bcc6af5 commit a9bb2e3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

js/src/range-slider.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,9 +589,10 @@ class RangeSlider extends BaseComponent {
589589
...dataAttributes,
590590
...(typeof config === 'object' && config ? config : {})
591591
}
592-
config = this._mergeConfigObj(config)
592+
config = this._mergeConfigObj(config, this._element)
593593
config = this._configAfterMerge(config)
594594
this._typeCheckConfig(config)
595+
595596
return config
596597
}
597598

js/src/rating.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,10 @@ class Rating extends BaseComponent {
470470
...dataAttributes,
471471
...(typeof config === 'object' && config ? config : {})
472472
}
473-
config = this._mergeConfigObj(config)
473+
config = this._mergeConfigObj(config, this._element)
474474
config = this._configAfterMerge(config)
475475
this._typeCheckConfig(config)
476+
476477
return config
477478
}
478479

0 commit comments

Comments
 (0)