a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

prevent default when clicking block options

+6 -1
+6 -1
components/BlockOptions.tsx
··· 35 35 return ( 36 36 <div className="blockOptionsWrapper absolute top-0 right-2 sm:right-3 hidden sm:group-hover/text:block group-focus-within/text:block"> 37 37 <div className="blockOptionsContent flex gap-1 items-center"> 38 - <label className="blockOptionsImage hover:cursor-pointer flex place-items-center"> 38 + <label 39 + className="blockOptionsImage hover:cursor-pointer flex place-items-center" 40 + onMouseDown={(e) => e.preventDefault()} 41 + > 39 42 <div className="text-tertiary hover:text-accent "> 40 43 <BlockImageSmall /> 41 44 </div> ··· 79 82 80 83 <button 81 84 className="blockOptionsCard text-tertiary hover:text-accent" 85 + onMouseDown={(e) => e.preventDefault()} 82 86 onClick={async () => { 83 87 if (!props.entityID) { 84 88 let entity = crypto.randomUUID(); ··· 140 144 className={`max-w-sm flex gap-2 rounded-md ${linkOpen ? "text-secondary" : " text-tertiary"}`} 141 145 > 142 146 <button 147 + onMouseDown={(e) => e.preventDefault()} 143 148 onClick={() => { 144 149 setLinkOpen(!linkOpen); 145 150 setTimeout(() => {