소스 검색

fix: amend 13fce7e

wangweimin 4 년 전
부모
커밋
850099eac9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
                 }