Skip to content

[Feature Request]希望点击cancelable 取消按钮之后,不会再提示其他输入组 #451

Description

@taiyi747

image
我写了一个登陆组,还有注册组
当我点击注册组,在点击登陆组,点击取消后,会弹回注册组
就是点击第一个input_group,再点另一个input_group,点击取消或者提交后,会弹出第一个input_group,但是这个input_group我并不想看到QAQ

Activity

  1. wang0618 commented on Aug 8, 2022

    @wang0618
    Member

    pywebio设计如此,按钮的点击事件默认是不会被忽略的。

    你的需求,其实可以转换为在显示一个input_group的时候,不相应其他input_group的创建请求。可以在显示一个input_group之前检查当前有没有其他input_group正在显示,如果有则提示用户先提交或取消当前的input_group。而“检查当前有没有其他input_group正在显示”可以通过在调用input_group()之前设置一个会话内的全局变量来实现

  2. locked and limited conversation to collaborators on Aug 8, 2022
  3. converted this issue into a discussion #455 on Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions