Skip to content

potential bug in Select - when drop down is open and the current view is closed, a RefCell already borrowed panic occurs #277

@ronnybremer

Description

@ronnybremer

I have an element, which display a Select component. Outside the component is a "close" button, which basically calls a callback from the parent element, removing this element from view.
When I display this element again, a new Select is rendered. As expected, I can do this process many times without any issues.

However, if I click on the close button while the drop down is open and I display the element again, I get:

18:53:43 [web] panicked at /home/dev/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/dioxus-core-0.7.9/src/arena.rs:59:50:
RefCell already borrowed

panic.

What is the best way to troubleshoot this issue? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions