浏览代码

fix a bug introduced in commit `3df460a`

wangweimin 3 年之前
父节点
当前提交
9f8c936539
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      pywebio/__version__.py
  2. 1 1
      webiojs/src/handlers/input.ts

+ 2 - 2
pywebio/__version__.py

@@ -1,8 +1,8 @@
 __package__ = 'pywebio'
 __description__ = 'Write interactive web app in script way.'
 __url__ = 'https://pywebio.readthedocs.io'
-__version__ = "1.3.1"
-__version_info__ = (1, 3, 1, 0)
+__version__ = "1.3.2"
+__version_info__ = (1, 3, 2, 0)
 __author__ = 'WangWeimin'
 __author_email__ = 'wang0.618@qq.com'
 __license__ = 'MIT'

+ 1 - 1
webiojs/src/handlers/input.ts

@@ -198,7 +198,7 @@ class FormController {
             if (!(input_spec.type in FormController.input_items))
                 throw new Error(`Unknown input type '${input_spec.type}'`);
             let item_class = FormController.input_items[input_spec.type];
-            let item = new item_class(input_spec, this.spec.task_id, (event, input_item) => {
+            let item = new item_class(input_spec, this.task_id, (event, input_item) => {
                 this.session.send_message({
                     event: "input_event",
                     task_id: this.task_id,