From b15c1a7fe7ee33a1439855da70b3cdbdeb2737c3 Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Tue, 6 Jul 2021 09:47:04 +0200 Subject: [PATCH] Update StandardDropdown.qml --- components/StandardDropdown.qml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/StandardDropdown.qml b/components/StandardDropdown.qml index 2116043f..6f747b2c 100644 --- a/components/StandardDropdown.qml +++ b/components/StandardDropdown.qml @@ -73,18 +73,14 @@ ColumnLayout { function selectPreviousItem() { if (columnid.currentIndex !== 0) { - columnid.currentIndex = columnid.currentIndex - 1; - repeater.itemAt(columnid.currentIndex).forceActiveFocus(); - dropdown.Accessible.name = dropdownLabel.text + " " + dropdownText.text + repeater.itemAt(--columnid.currentIndex).forceActiveFocus(); changed(); } } function selectNextItem() { if (columnid.currentIndex + 1 !== repeater.count) { - columnid.currentIndex = columnid.currentIndex + 1; - repeater.itemAt(columnid.currentIndex).forceActiveFocus(); - dropdown.Accessible.name = dropdownLabel.text + " " + dropdownText.text + repeater.itemAt(++columnid.currentIndex).forceActiveFocus(); changed(); } }