Skip to content

Commit

Permalink
EZP-31295: Unable to use default empty custom CSS class in the OE (#1194
Browse files Browse the repository at this point in the history
)

* EZP-31295: Unable to use default empty custom CSS class in the OE

*  EZP-31295: Unable to use default empty custom CSS class in the OE, code style fix
  • Loading branch information
SerheyDolgushev authored and lserwatka committed Jan 21, 2020
1 parent 07ab0c4 commit 6905f78
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,13 @@ export default class EzBtnAttributesUpdate extends EzWidgetButton {
return;
}

block.$.classList.remove(...this.classes.choices);
const classList = block.$.classList;

this.classes.choices.forEach((className) => {
if (classList.contains(className)) {
classList.remove(className);
}
});
}

saveValues() {
Expand Down

0 comments on commit 6905f78

Please sign in to comment.