We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG描述 使用input_group的例程,添加cancelable=True
def check_form(data): print("call validate check form") if len(data['name']) > 6: return ('name', 'Name to long!') if data['age'] <= 0: return ('age', 'Age cannot be negative!') data = input_group("Basic info", [ input('Input your name', name='name'), input('Repeat your age', name='age', type=NUMBER) ], validate=check_form, cancelable=True) if data is None: put_text("cancelled") else: put_text(data['name'], data['age'])
故意输入错误的name或者age字段,submit使validate返回错误。再点击cancel,此时validate不会被调用,data获得的是上一次的错误的值
环境信息
The text was updated successfully, but these errors were encountered:
多谢反馈,尽快会修复这个bug
Sorry, something went wrong.
782fed1
新版本 v1.8.3 中已经修复这个bug
No branches or pull requests
BUG描述
使用input_group的例程,添加cancelable=True
故意输入错误的name或者age字段,submit使validate返回错误。再点击cancel,此时validate不会被调用,data获得的是上一次的错误的值
环境信息
The text was updated successfully, but these errors were encountered: