Commit cdf446a
committed
Remove auto-scrolling in validators/accordions
Stop automatic page jumps caused by various validation and accordion helpers. Removed animate-scroll calls from validation flows (assets/js/functions/validation.js and assets/js/luxuryCar.js) and from openNextAccordion (assets/js/components/productPage.js and assets/js/luxuryCar.js). Instead, productPage.priplatky now explicitly scrolls to the next step after opening it (delayed 600ms) so scrolling is applied only where intended. This prevents unexpected scrolling when marking errors or opening accordions and centralizes scroll behavior.1 parent 4f9b8ab commit cdf446a
File tree
3 files changed
+6
-61
lines changed- assets/js
- components
- functions
3 files changed
+6
-61
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
475 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
476 | 478 | | |
477 | 479 | | |
478 | 480 | | |
| |||
678 | 680 | | |
679 | 681 | | |
680 | 682 | | |
681 | | - | |
| 683 | + | |
682 | 684 | | |
683 | 685 | | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | 686 | | |
689 | 687 | | |
690 | 688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 17 | | |
25 | 18 | | |
26 | 19 | | |
| |||
62 | 55 | | |
63 | 56 | | |
64 | 57 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 58 | | |
76 | 59 | | |
77 | 60 | | |
| |||
125 | 108 | | |
126 | 109 | | |
127 | 110 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 111 | | |
139 | 112 | | |
140 | 113 | | |
| |||
230 | 203 | | |
231 | 204 | | |
232 | 205 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | 206 | | |
243 | 207 | | |
244 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1368 | 1368 | | |
1369 | 1369 | | |
1370 | 1370 | | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | 1371 | | |
1375 | 1372 | | |
1376 | 1373 | | |
| |||
2347 | 2344 | | |
2348 | 2345 | | |
2349 | 2346 | | |
2350 | | - | |
| 2347 | + | |
2351 | 2348 | | |
2352 | 2349 | | |
2353 | | - | |
2354 | | - | |
2355 | | - | |
2356 | | - | |
2357 | | - | |
2358 | | - | |
2359 | 2350 | | |
2360 | 2351 | | |
2361 | 2352 | | |
| |||
2434 | 2425 | | |
2435 | 2426 | | |
2436 | 2427 | | |
2437 | | - | |
2438 | | - | |
2439 | | - | |
2440 | | - | |
2441 | | - | |
2442 | | - | |
2443 | | - | |
2444 | | - | |
2445 | 2428 | | |
2446 | 2429 | | |
2447 | 2430 | | |
| |||
0 commit comments