mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
changed the test structure
This commit is contained in:
@@ -15,9 +15,7 @@ $.extend(radioInputBinding, {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
setValue: function(el, value) {
|
setValue: function(el, value) {
|
||||||
if (value === undefined) {
|
if ($.isArray(value) && value.length === 0) {
|
||||||
return;
|
|
||||||
} else if (value.length === 0) {
|
|
||||||
// Removing all checked item if the sent data is empty
|
// Removing all checked item if the sent data is empty
|
||||||
$('input:radio[name="' + $escape(el.id) + '"]').prop('checked', false);
|
$('input:radio[name="' + $escape(el.id) + '"]').prop('checked', false);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user