From 2c0244e67a76802d95c2f0ec3ea7260d4e5dcbee Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Fri, 28 Feb 2025 17:15:06 -0500 Subject: [PATCH] remove extraneous delete handling it's handling in block keyboard handlers --- components/Blocks/ExternalLinkBlock.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/Blocks/ExternalLinkBlock.tsx b/components/Blocks/ExternalLinkBlock.tsx index 1fab2304..599c109c 100644 --- a/components/Blocks/ExternalLinkBlock.tsx +++ b/components/Blocks/ExternalLinkBlock.tsx @@ -12,7 +12,6 @@ import { Separator } from "components/Layout"; import { focusElement, Input } from "components/Input"; import { isUrl } from "src/utils/isURL"; import { elementId } from "src/utils/elementId"; -import { deleteBlock } from "./DeleteBlock"; import { focusBlock } from "src/utils/focusBlock"; export const ExternalLinkBlock = ( @@ -175,11 +174,6 @@ const BlockLinkInput = (props: BlockProps) => { value={linkValue} onChange={(e) => setLinkValue(e.target.value)} onKeyDown={(e) => { - if (e.key === "Backspace" && linkValue === "") { - e.preventDefault(); - rep && deleteBlock([props.entityID].flat(), rep); - return; - } if (e.key === "Enter") { e.preventDefault(); if (!linkValue) return; -- 2.51.2