https://bugs.kde.org/show_bug.cgi?id=424076

            Bug ID: 424076
           Summary: PlasmaComponents3.ComboBox closes popup on click
                    release when editable=true
           Product: frameworks-plasma
           Version: 5.71.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: components
          Assignee: notm...@gmail.com
          Reporter: zrenf...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: ---

https://invent.kde.org/frameworks/plasma-framework/-/blame/master/src/declarativeimports/plasmacomponents3/ComboBox.qml

One solution is to make `contentItem: T.TextField {}` instead of `MouseArea`
wrapping the `TextField`. However this breaks press+drag+select.

Note that if you do press+drag, it spams this:
file:///usr/lib/qt/qml/org/kde/plasma/components.3/ComboBox.qml:112:
ReferenceError: controlRoot is not defined

IF we make contentItem: T.TextField, it would also fix another bug:
PlasmaComponents3.ComboBox autocomplete doesn't work.

See `QQuickComboBoxPrivate::updateEditText()` to where it casts `contentItem`
as `QQuickTextInput`.

https://github.com/qt/qtquickcontrols2/blob/dev/src/quicktemplates2/qquickcombobox.cpp#L426

I've personally patched the ComboBox with:
https://gist.github.com/Zren/99ea7a517ea1e1ca028662aa84543ce8

OS: Manjaro
KDE Plasma Version: 5.19.80 (plasma-git)
KDE Frameworks Version: 5.71 (kf5-git)
Qt Version: 5.15

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to