diff --git a/quickshell/Widgets/DankDropdown.qml b/quickshell/Widgets/DankDropdown.qml index bd342b84..5dd76671 100644 --- a/quickshell/Widgets/DankDropdown.qml +++ b/quickshell/Widgets/DankDropdown.qml @@ -121,7 +121,12 @@ Item { dropdownMenu.close(); return; } + dropdownMenu.open(); + + let currentIndex = root.options.indexOf(root.currentValue); + listView.positionViewAtIndex(currentIndex, ListView.Beginning); + const pos = dropdown.mapToItem(Overlay.overlay, 0, 0); const popupW = dropdownMenu.width; const popupH = dropdownMenu.height;