[jewel] JEWEL-773 fix EditableComboBox not closing popup on click

reference https://youtrack.jetbrains.com/issue/JEWEL-773/EditableListComboBox-Clicking-an-item-does-not-close-the-popup

closes JEWEL-773

closes https://github.com/JetBrains/intellij-community/pull/2952


(cherry picked from commit 8f91b6c9c3d120e38103e78ce6854e6ce2399a7a)

IJ-MR-155570

GitOrigin-RevId: 1339d50e45323287a4423444deb70e9bb63683ce
This commit is contained in:
Ivan Morgillo
2025-02-21 10:29:17 +01:00
committed by intellij-monorepo-bot
parent 7a31be480d
commit 622abd9d80

View File

@@ -18,6 +18,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.widthIn
import androidx.compose.foundation.onClick
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.BasicTextField
import androidx.compose.foundation.text.input.TextFieldLineLimits
@@ -193,8 +194,9 @@ public fun EditableComboBox(
modifier =
popupModifier
.testTag("Jewel.ComboBox.Popup")
.semantics { contentDescription = "Jewel.ComboBox.Popup" }
.width(comboBoxWidth),
.semantics { contentDescription = "Jewel.EditableComboBox.Popup" }
.width(comboBoxWidth)
.onClick { popupManager.setPopupVisible(false) },
horizontalAlignment = Alignment.Start,
popupProperties = PopupProperties(focusable = false),
content = popupContent,