fix(path-input): added e.stopPropagation() to ensure the parent modal does not close when the search is active and the ESC key is pressed

This commit is contained in:
Illia Filippov
2025-12-25 12:50:10 +01:00
parent 1c59eabf5f
commit 7f4b60b8c0

View File

@@ -226,6 +226,7 @@ function PathInput({
// Close search with Escape key
if (e.key === 'Escape' && isSearchOpen) {
e.preventDefault();
e.stopPropagation(); // Stop propagation so parent modal doesn't close
setIsSearchOpen(false);
}
};