Fix radiobox component (rev.ad7bc46e30789376330752dd4df0aff9cc4f71d7). Fix Bug 43848
This commit is contained in:
parent
5f1449dbcc
commit
070aabce8f
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue