project_panel: Fix drop highlight is not being removed when esc is pressed (#32115)

Release Notes:

- Fixed the issue where pressing `esc` would cancel the drag-and-drop
operation but wouldn’t clear the drop highlight on directories.
This commit is contained in:
Smit Barmase 2025-06-05 03:53:59 +05:30 committed by GitHub
parent 8191a5339d
commit 7c64737e00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1383,6 +1383,8 @@ impl ProjectPanel {
fn cancel(&mut self, _: &menu::Cancel, window: &mut Window, cx: &mut Context<Self>) {
if cx.stop_active_drag(window) {
self.drag_target_entry.take();
self.hover_expand_task.take();
return;
}