Explorar o código

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

wangweimin %!s(int64=3) %!d(string=hai) anos
pai
achega
0011ae24ba
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
             input_elem.attr(key, this.spec[key]);
         }
+
+        // @ts-ignore
+        input_elem.selectpicker('refresh');
     }
 
     update_input(spec: any): any {