mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 14:36:49 +08:00
Fix radiobox component (rev.ad7bc46e30789376330752dd4df0aff9cc4f71d7). Fix Bug 43848
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user