From 7c64737e0054d4cf2b6b45349e86a466ab8f553c Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Thu, 5 Jun 2025 03:53:59 +0530 Subject: [PATCH] project_panel: Fix drop highlight is not being removed when `esc` is pressed (#32115) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Release Notes: - Fixed the issue where pressing `esc` would cancel the drag-and-drop operation but wouldn’t clear the drop highlight on directories. --- crates/project_panel/src/project_panel.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index 35cc78b71c..1a3d07ef49 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -1383,6 +1383,8 @@ impl ProjectPanel { fn cancel(&mut self, _: &menu::Cancel, window: &mut Window, cx: &mut Context) { if cx.stop_active_drag(window) { + self.drag_target_entry.take(); + self.hover_expand_task.take(); return; }