skopix 2.0.51 → 2.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skopix",
3
- "version": "2.0.51",
3
+ "version": "2.0.53",
4
4
  "description": "Browser-based QA tool — record tests by using your app, replay them deterministically, generate Playwright code automatically",
5
5
  "main": "cli/index.js",
6
6
  "bin": {
@@ -2912,11 +2912,12 @@ function switchView(name) {
2912
2912
  }
2913
2913
  let currentView = 'dashboard';
2914
2914
 
2915
- document.querySelectorAll('.nav-item').forEach(item => {
2916
- item.addEventListener('click', (e) => {
2915
+ document.addEventListener('click', (e) => {
2916
+ const navItem = e.target.closest('.nav-item[data-view]');
2917
+ if (navItem) {
2917
2918
  e.preventDefault();
2918
- switchView(item.dataset.view);
2919
- });
2919
+ switchView(navItem.dataset.view);
2920
+ }
2920
2921
  });
2921
2922
 
2922
2923
  // ───── MODAL ─────────────────────────────────────────────────────────────────