Fix radiobox in advanced settings (set value = false)

This commit is contained in:
Julia Radzhabova 2022-06-16 18:21:34 +03:00
parent 2db9b044c5
commit d69654ea1f

View file

@ -157,7 +157,7 @@ define([
setRawValue: function(value) {
var value = (value === true || value === 'true' || value === '1' || value === 1 );
$('input[type=radio][name=' + this.name + ']').removeClass('checked');
value && $('input[type=radio][name=' + this.name + ']').removeClass('checked');
this.$radio.toggleClass('checked', value);
this.$radio.prop('checked', value);
},