8000 Allow using multiple nodes with use_click_away · Issue #32 · jetli/yew-hooks · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Allow using multiple nodes with use_click_away #32
Open
@ctron

Description

@ctron

I am implementing a component consisting of two part: a toggle and some content. The content is shows using a portal.

I do want to use use_click_away, but actually both elements (the toggle and the portal content) should be considered "inside". This works when not using portals by wrapping with an additional element. However, this strategy fails when using portals.

If use_click_away would accept an array of nodes instead, I would be able to define two (or more) nodes as "inside" and it would work.

Let me know if you want me to work on a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0