Commit 1e05d23
committed
fix: preserve version selection when loading more releases
When clicking 'Load more...' to fetch additional releases, the version
dropdown would show a blank selection after removing the 'Load more...'
item and adding new versions.
This fix saves the current selection index before removing the last item
and restores it after adding new releases, ensuring the user's selected
version remains visible during pagination.1 parent f881e4c commit 1e05d23
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
105 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
| |||
0 commit comments