Skip to content

Commit 279452a

Browse files
committed
fix: do not block input when item is selected
1 parent b84ea9c commit 279452a

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

packages/pluggableWidgets/combobox-web/src/__tests__/__snapshots__/SingleSelection.spec.tsx.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ exports[`Combo box (Association) renders combobox widget 1`] = `
2323
class="widget-combobox-input"
2424
id="comboBox1"
2525
placeholder=" "
26-
readonly=""
2726
role="combobox"
2827
tabindex="0"
2928
value=""

packages/pluggableWidgets/combobox-web/src/__tests__/__snapshots__/StaticSelection.spec.tsx.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ exports[`Combo box (Static values) renders combobox widget 1`] = `
2323
class="widget-combobox-input"
2424
id="comboBox1"
2525
placeholder=" "
26-
readonly=""
2726
role="combobox"
2827
tabindex="0"
2928
value=""

packages/pluggableWidgets/combobox-web/src/components/SingleSelection/SingleSelection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function SingleSelection({
6363
const inputProps = getInputProps(
6464
{
6565
disabled: selector.readOnly,
66-
readOnly: selector.options.filterType === "none" || !!selector.currentId,
66+
readOnly: selector.options.filterType === "none",
6767
ref: inputRef,
6868
"aria-required": ariaRequired.value,
6969
"aria-label": !hasLabel && options.ariaLabel ? options.ariaLabel : undefined

0 commit comments

Comments
 (0)