Skip to content

Commit 6c466c2

Browse files
claude[bot]zbeyens
andauthored
fix: close combobox on blur
Change cancelInputOnBlur from false to true in inline-combobox components to properly close the combobox when clicking outside the editor. Fixes #3853 Co-authored-by: Ziad Beyens <[email protected]>
1 parent 58dba71 commit 6c466c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/www/src/registry/ui/inline-combobox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const InlineCombobox = ({
124124
}, [editor, element]);
125125

126126
const { props: inputProps, removeInput } = useComboboxInput({
127-
cancelInputOnBlur: false,
127+
cancelInputOnBlur: true,
128128
cursorState,
129129
ref: inputRef,
130130
onCancelInput: (cause) => {

templates/plate-playground-template/src/components/ui/inline-combobox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const InlineCombobox = ({
124124
}, [editor, element]);
125125

126126
const { props: inputProps, removeInput } = useComboboxInput({
127-
cancelInputOnBlur: false,
127+
cancelInputOnBlur: true,
128128
cursorState,
129129
ref: inputRef,
130130
onCancelInput: (cause) => {

0 commit comments

Comments
 (0)