DioxusLabs / DioxusLabs/blitz

RefCell already borrowed when using Select component

Open
#692 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.1k
Forks
203
Avg merge
8h 58m
Merged PRs (30d)
112

Description

Using the dioxus-components Select component (based on Select in dioxus-primitives) I get the following error when trying to select:

"RefCell already borrowed"

The source of the error is dioxus-native-dom\src\events.rs.

I am using blitz revision 26c4fb3.

Regardless of whether these controls are intended to be compatible right now this seems to indicate an issue in the blitz code.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the dioxus-components Select interaction at Blitz revision 26c4fb3, then inspect dioxus-native-dom/src/events.rs where the "RefCell already borrowed" error originates. Trace the event handling and borrowing sequence involved in selection. Done means selecting an option no longer triggers the borrow error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.