-
Notifications
You must be signed in to change notification settings - Fork 273
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
feat: enable radio button form support #357
Conversation
packages/main/src/RadioButton.js
Outdated
@@ -167,6 +190,15 @@ class RadioButton extends UI5Element { | |||
onBeforeRendering() { | |||
this.syncLabel(); | |||
this.syncGroup(); | |||
|
|||
if (RadioButton.FormSupport) { |
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.
Seems great, do you mind extracting the form support code block in a separate method -enableFormSupport or something similar, just to keep the onBeforeRendering lean.
onBeforeRendering() {
this.syncLabel();
this.syncGroup();
this.enableFormSupport();
}
} | ||
|
||
syncLabel() { | ||
this._label = Object.assign({}, this._label); |
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 can be shorten a bit, but I not important at all
Thank you for your contribution! 👏
To get it merged faster, kindly review the checklist below:
Pull Request Checklist