-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EZP-31295: Unable to use default empty custom CSS class in the OE #1194
EZP-31295: Unable to use default empty custom CSS class in the OE #1194
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for another contribution.
Looks ok, just minor code style.
@@ -143,7 +143,12 @@ export default class EzBtnAttributesUpdate extends EzWidgetButton { | |||
return; | |||
} | |||
|
|||
block.$.classList.remove(...this.classes.choices); | |||
const classList = block.$.classList; | |||
this.classes.choices.forEach(className => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.classes.choices.forEach(className => { | |
this.classes.choices.forEach((className) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SerheyDolgushev could you prepare PR for ezplatform-richtext to fix it in 3.0? |
PR for master created: ezsystems/ezplatform-richtext#104 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA Approved on eZ Platform EE v2.5.8 with diff.
@dew326 sorry, I was out for a few days. And seems like you just made a PR for master. |
Could you merge it up? |
@lserwatka done |
In some cases custom CSS class is optional, and it should be possible to not select any. Right now UI is not allowing to do that. As a workaround, we added an empty custom CSS class and made it default, but it was causing some errors.
Steps to reproduce
Actual result
Following JavaScript error is thrown:
Expected result
Custom CSS class should be changed, and it should be possible to change it to the empty default value at any given time.
Checklist:
$ composer fix-cs
)