a tool for shared writing and social publishing

remove input id on preview canvas link blocks

+4 -2
+4 -2
components/Blocks/ExternalLinkBlock.tsx
··· 112 112 ); 113 113 }; 114 114 115 - const BlockLinkInput = (props: BlockProps) => { 115 + const BlockLinkInput = (props: BlockProps & { preview?: boolean }) => { 116 116 let isSelected = useUIState((s) => 117 117 s.selectedBlocks.find((b) => b.value === props.entityID), 118 118 ); ··· 167 167 /> 168 168 <Separator /> 169 169 <Input 170 - id={elementId.block(props.entityID).input} 170 + id={ 171 + !props.preview ? elementId.block(props.entityID).input : undefined 172 + } 171 173 type="url" 172 174 disabled={isLocked} 173 175 className="w-full grow border-none outline-none bg-transparent "