Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable radio button form support #357

Merged
merged 3 commits into from
Apr 23, 2019
Merged

Conversation

vladitasev
Copy link
Contributor

Thank you for your contribution! 馃憦

To get it merged faster, kindly review the checklist below:

Pull Request Checklist

@@ -167,6 +190,15 @@ class RadioButton extends UI5Element {
onBeforeRendering() {
this.syncLabel();
this.syncGroup();

if (RadioButton.FormSupport) {
Copy link
Member

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();
}

ilhan007
ilhan007 previously approved these changes Apr 23, 2019
}

syncLabel() {
this._label = Object.assign({}, this._label);
Copy link
Member

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

@vladitasev vladitasev merged commit 96a0517 into master Apr 23, 2019
@vladitasev vladitasev deleted the radio-form-support branch April 23, 2019 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants