Browse Source

fix: amend 13fce7e

wangweimin 4 years ago
parent
commit
850099eac9
1 changed files with 1 additions and 1 deletions
  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;
         if ('target_value' in spec) {
             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;
                     return false;
                 }