Pārlūkot izejas kodu

fix `input_update()` failed on `select()`

wangweimin 3 gadi atpakaļ
vecāks
revīzija
0011ae24ba
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      webiojs/src/models/input/select.ts

+ 3 - 0
webiojs/src/models/input/select.ts

@@ -67,6 +67,9 @@ export class Select extends InputItem {
             if (key in ignore_keys) continue;
             if (key in ignore_keys) continue;
             input_elem.attr(key, this.spec[key]);
             input_elem.attr(key, this.spec[key]);
         }
         }
+
+        // @ts-ignore
+        input_elem.selectpicker('refresh');
     }
     }
 
 
     update_input(spec: any): any {
     update_input(spec: any): any {