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
Fix for dynamic dialog fields not being updated #381
Conversation
Using dialogField.value for fields that are not a subclass of DialogFieldSortedItem. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1696474
Checked commits romanblanco/ui-components@633df92~...fefaf0c with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@d-m-u or @eclarizio, could you verify the fix works? |
@miq-bot add_label bug, hammer/yes |
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, looks great
@himdel @martinpovolny can you please merge this PR |
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.
Looks fine overall, surprised the small change in logic didn't break any specs though, I guess we don't have specs covering the changesHappened
method for when the field type is DialogFieldRadioButton
?
Fix for dynamic dialog fields not being updated (cherry picked from commit a9c4a08) https://bugzilla.redhat.com/show_bug.cgi?id=1698586
Hammer backport details:
|
Can we change
|
@d-m-u So, something like.. const fieldValue = (value !== undefined) ? value :
((field.values !== undefined) ? field.values : field.default_value); ? EDIT: values |
@romanblanco cc |
Revert ng-model changes from #381
Using dialogField.value for fields that are not a subclass of
DialogFieldSortedItem
.Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1696474