Fix radiobox widget calling onchange event infinitely

This commit is contained in:
Hadi Nategh 2020-08-18 13:20:29 +02:00
parent e188c9f904
commit f63a0a6075
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ var et2_radiobox = /** @class */ (function (_super) {
et2_radiobox.prototype.set_value = function (_value) {
this.getRoot().iterateOver(function (radio) {
if (radio.id == this.id) {
radio.input.prop('checked', _value == radio.options.set_value).change();
radio.input.prop('checked', _value == radio.options.set_value);
}
}, this, et2_radiobox);
};

View File

@ -124,7 +124,7 @@ export class et2_radiobox extends et2_inputWidget
{
if (radio.id == this.id)
{
radio.input.prop('checked', _value == radio.options.set_value).change();
radio.input.prop('checked', _value == radio.options.set_value);
}
}, this, et2_radiobox);
}