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

Smit Barmase created

Release Notes:

- Fixed the issue where pressing `esc` would cancel the drag-and-drop
operation but wouldn’t clear the drop highlight on directories.

Change summary

crates/project_panel/src/project_panel.rs | 2 ++
1 file changed, 2 insertions(+)

Detailed changes

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<Self>) {
         if cx.stop_active_drag(window) {
+            self.drag_target_entry.take();
+            self.hover_expand_task.take();
             return;
         }