From f63a0a607544b135dd106a6d779017d8306eb6d8 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 18 Aug 2020 13:20:29 +0200 Subject: [PATCH] Fix radiobox widget calling onchange event infinitely --- api/js/etemplate/et2_widget_radiobox.js | 2 +- api/js/etemplate/et2_widget_radiobox.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_widget_radiobox.js b/api/js/etemplate/et2_widget_radiobox.js index 75e8b8d335..148f07dc03 100644 --- a/api/js/etemplate/et2_widget_radiobox.js +++ b/api/js/etemplate/et2_widget_radiobox.js @@ -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); }; diff --git a/api/js/etemplate/et2_widget_radiobox.ts b/api/js/etemplate/et2_widget_radiobox.ts index 0e65751742..6498f4fd67 100644 --- a/api/js/etemplate/et2_widget_radiobox.ts +++ b/api/js/etemplate/et2_widget_radiobox.ts @@ -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); }