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 losing focus on block type change

+7 -4
+7 -4
components/Blocks/BlockCommandBar.tsx
··· 110 110 ref={ref} 111 111 onOpenAutoFocus={(e) => e.preventDefault()} 112 112 className={` 113 - commandMenuContent group/cmd-menu 114 - z-20 w-[264px] 115 - flex data-[side=top]:items-end items-start 113 + commandMenuContent group/cmd-menu 114 + z-20 w-[264px] 115 + flex data-[side=top]:items-end items-start 116 116 `} 117 117 > 118 118 <NestedCardThemeProvider> ··· 172 172 ? props.setHighlighted(undefined) 173 173 : props.setHighlighted(props.name); 174 174 }} 175 - onMouseDown={() => props.onSelect()} 175 + onMouseDown={(e) => { 176 + e.preventDefault(); 177 + props.onSelect(); 178 + }} 176 179 > 177 180 <div className="text-tertiary w-8 shrink-0 flex justify-center"> 178 181 {props.icon}