Skip to content

Commit

Permalink
Fix clear_textbox example
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed Nov 20, 2024
1 parent 147cb5e commit 30a5edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/yakui/examples/clear_textbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn run() {
clear.set(false);
}

let res = textbox(&text.borrow());
let res = textbox(text.borrow().clone());
if let Some(new_text) = res.into_inner().text {
text.set(new_text);
}
Expand Down

0 comments on commit 30a5edc

Please sign in to comment.