Skip to content

Commit

Permalink
Ripple - fix issue with class customization (#1801)
Browse files Browse the repository at this point in the history
  • Loading branch information
juujisai committed Jul 21, 2023
1 parent b49e94b commit 86cd9f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/js/methods/ripple.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,11 @@ class Ripple {
this._isMinWidthSet = true;
}

this._options = this._getConfig();
this._classes = this._getClasses();

this._initialClasses = [...this._element.classList];
Manipulator.addClass(this._element, this._classes.ripple);

this._options = this._getConfig();
this._createRipple(event);
}

Expand Down Expand Up @@ -268,7 +269,7 @@ class Ripple {
return config;
}

_getClasses(classes) {
_getClasses(classes = {}) {
const dataAttributes = Manipulator.getDataClassAttributes(this._element);

classes = {
Expand Down

0 comments on commit 86cd9f2

Please sign in to comment.