From 070aabce8fec6085dbf0e1cd1622206f7d94f9c3 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 11 Dec 2019 16:54:50 +0300 Subject: [PATCH] Fix radiobox component (rev.ad7bc46e30789376330752dd4df0aff9cc4f71d7). Fix Bug 43848 --- apps/common/main/lib/component/RadioBox.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/component/RadioBox.js b/apps/common/main/lib/component/RadioBox.js index 75a10ab874..b26e23aa82 100644 --- a/apps/common/main/lib/component/RadioBox.js +++ b/apps/common/main/lib/component/RadioBox.js @@ -131,6 +131,8 @@ define([ setRawValue: function(value) { var value = (value === true || value === 'true' || value === '1' || value === 1 ); + $('input[type=radio][name=' + this.name + ']').removeClass('checked'); + this.$radio.toggleClass('checked', value); this.$radio.prop('checked', value); }, @@ -146,7 +148,7 @@ define([ }, getValue: function() { - return this.$radio.hasClass('checked'); + return this.$radio.is(':checked'); }, setCaption: function(text) {