We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e527d2 commit 96f5ac4Copy full SHA for 96f5ac4
src/PerfProblemSimulator/wwwroot/js/dashboard.js
@@ -935,6 +935,16 @@ function initializeSidePanel() {
935
btnClose.addEventListener('click', closeSidePanel);
936
}
937
938
+ // Close panel when clicking outside (on main content)
939
+ document.addEventListener('click', (e) => {
940
+ if (sidePanel.classList.contains('open')) {
941
+ // Check if click is outside the panel and not on the toggle button
942
+ if (!sidePanel.contains(e.target) && !btnToggle.contains(e.target)) {
943
+ closeSidePanel();
944
+ }
945
946
+ });
947
+
948
// Close panel on Escape key
949
document.addEventListener('keydown', (e) => {
950
if (e.key === 'Escape' && sidePanel.classList.contains('open')) {
0 commit comments