@openmrs/ngx-formentry 3.0.1-pre.123 → 3.0.1-pre.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9263,6 +9263,10 @@
|
|
|
9263
9263
|
};
|
|
9264
9264
|
RadioButtonControlComponent.prototype.writeValue = function (value) {
|
|
9265
9265
|
this.value = value;
|
|
9266
|
+
var newValueOpt = this.options.find(function (opt) { return opt.value === value; });
|
|
9267
|
+
if (newValueOpt) {
|
|
9268
|
+
Object.assign(newValueOpt, { checked: true });
|
|
9269
|
+
}
|
|
9266
9270
|
};
|
|
9267
9271
|
RadioButtonControlComponent.prototype.registerOnChange = function (fn) {
|
|
9268
9272
|
this.onChange = fn;
|