a tool for shared writing and social publishing

remove extraneous delete handling

it's handling in block keyboard handlers

-6
-6
components/Blocks/ExternalLinkBlock.tsx
··· 12 import { focusElement, Input } from "components/Input"; 13 import { isUrl } from "src/utils/isURL"; 14 import { elementId } from "src/utils/elementId"; 15 - import { deleteBlock } from "./DeleteBlock"; 16 import { focusBlock } from "src/utils/focusBlock"; 17 18 export const ExternalLinkBlock = ( ··· 175 value={linkValue} 176 onChange={(e) => setLinkValue(e.target.value)} 177 onKeyDown={(e) => { 178 - if (e.key === "Backspace" && linkValue === "") { 179 - e.preventDefault(); 180 - rep && deleteBlock([props.entityID].flat(), rep); 181 - return; 182 - } 183 if (e.key === "Enter") { 184 e.preventDefault(); 185 if (!linkValue) return;
··· 12 import { focusElement, Input } from "components/Input"; 13 import { isUrl } from "src/utils/isURL"; 14 import { elementId } from "src/utils/elementId"; 15 import { focusBlock } from "src/utils/focusBlock"; 16 17 export const ExternalLinkBlock = ( ··· 174 value={linkValue} 175 onChange={(e) => setLinkValue(e.target.value)} 176 onKeyDown={(e) => { 177 if (e.key === "Enter") { 178 e.preventDefault(); 179 if (!linkValue) return;