Fix handling leave event to one widget after enter for another

This commit is contained in:
Ian Douglas Scott 2024-05-02 12:53:09 -07:00
parent 0f237155bf
commit 30b0cfe17b
2 changed files with 11 additions and 5 deletions

View file

@ -177,7 +177,10 @@ fn workspace_sidebar_entry<'a>(
.on_enter(|actions, mime, pos| {
Msg::DndWorkspaceEnter(workspace.handle.clone(), output.clone(), actions, mime, pos)
})
.on_exit(Msg::DndWorkspaceLeave)
.on_exit(Msg::DndWorkspaceLeave(
workspace.handle.clone(),
output.clone(),
))
.on_drop(Msg::DndWorkspaceDrop)
.on_data(Msg::DndWorkspaceData)
//)