Explorar o código

fix: amend 13fce7e

wangweimin %!s(int64=4) %!d(string=hai) anos
pai
achega
850099eac9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      webiojs/src/models/input/checkbox_radio.ts

+ 1 - 1
webiojs/src/models/input/checkbox_radio.ts

@@ -62,7 +62,7 @@ export class CheckboxRadio extends InputItem {
         let idx = -1;
         let idx = -1;
         if ('target_value' in spec) {
         if ('target_value' in spec) {
             this.element.find('input').each(function (index) {
             this.element.find('input').each(function (index) {
-                if ($(this).val() === spec.target_value) {
+                if (JSON.parse($(this).val() as string) === spec.target_value) {
                     idx = index;
                     idx = index;
                     return false;
                     return false;
                 }
                 }