Skip to content

Commit 5fcd5bc

Browse files
committed
Fix collapse click-through on key edit input
1 parent af04a23 commit 5fcd5bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ButtonPanels.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ export const EditButtons: React.FC<EditButtonProps> = ({
170170
name="new-object-key"
171171
value={newKey}
172172
onChange={(e) => setNewKey(e.target.value)}
173+
onClick={(e) => e.stopPropagation()}
173174
autoFocus
174175
onFocus={(e) => e.target.select()}
175176
onKeyDown={handleKeyPress}

0 commit comments

Comments
 (0)