Fix Div::active not working

Somehow a condition got inverted and caused the bug.
This commit is contained in:
Antonio Scandurra
2023-12-12 17:40:22 +01:00
parent 35670368a5
commit e53b9f5ccf
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -984,7 +984,7 @@ impl Interactivity {
}
let active_state = element_state.clicked_state.clone();
if !active_state.borrow().is_clicked() {
if active_state.borrow().is_clicked() {
cx.on_mouse_event(move |_: &MouseUpEvent, phase, cx| {
if phase == DispatchPhase::Capture {
*active_state.borrow_mut() = ElementClickedState::default();