Skip to content

Commit 35bdb53

Browse files
committed
chore: do not close popup if already open and input is clicked
1 parent fb98875 commit 35bdb53

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/shared/widget-plugin-filtering/src/controllers/picker/mixins/TagPickerControllerMixin.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ export function TagPickerControllerMixin<TBase extends BaseController>(Base: TBa
142142
highlightedIndex: state.highlightedIndex,
143143
inputValue: state.inputValue
144144
};
145+
case useCombobox.stateChangeTypes.InputClick:
146+
if (state.isOpen) {
147+
return {
148+
...changes,
149+
isOpen: true,
150+
highlightedIndex: state.highlightedIndex
151+
};
152+
}
153+
return changes;
145154
default:
146155
return {
147156
...changes,

0 commit comments

Comments
 (0)