Skip to content

Commit be8dfd6

Browse files
committed
Fix "Escape" not cancelling key edit of collections
1 parent f422efc commit be8dfd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CollectionNode.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export const CollectionNode: React.FC<CollectionNodeProps> = ({
151151

152152
const handleCancel = () => {
153153
setIsEditing(false)
154+
setIsEditingKey(false)
154155
setError(null)
155156
setStringifiedValue(JSON.stringify(data, null, 2))
156157
}

0 commit comments

Comments
 (0)