Skip to content

希望 useClickAway 支持条件化触发 #2874

@yibird

Description

@yibird

目前useClickAway不支持条件化触发,希望添加一个enbale配置(默认为true),只有当true时才触发函数执行。在写弹窗的逻辑时就遇到这个问题了,弹窗使用open控制是否打开,在组件里面使用useClickAway() 即使做了open状态仍无效

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions