tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
remove input id on preview canvas link blocks
awarm.space
8 months ago
f9cefce3
ad1c0b76
+4
-2
1 changed file
expand all
collapse all
unified
split
components
Blocks
ExternalLinkBlock.tsx
+4
-2
components/Blocks/ExternalLinkBlock.tsx
···
112
112
);
113
113
};
114
114
115
115
-
const BlockLinkInput = (props: BlockProps) => {
115
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
170
-
id={elementId.block(props.entityID).input}
170
170
+
id={
171
171
+
!props.preview ? elementId.block(props.entityID).input : undefined
172
172
+
}
171
173
type="url"
172
174
disabled={isLocked}
173
175
className="w-full grow border-none outline-none bg-transparent "