mirror of
https://github.com/docmost/docmost.git
synced 2026-08-28 17:27:06 +08:00
dragging logic
This commit is contained in:
@@ -39,7 +39,7 @@ export default function TabsView(props: NodeViewProps) {
|
||||
const previous = document.activeElement as HTMLElement | null;
|
||||
const input = event.currentTarget;
|
||||
|
||||
if (!previous.contains(input)) {
|
||||
if (!previous?.contains(input)) {
|
||||
allowFocusRef.current = true;
|
||||
return;
|
||||
}
|
||||
@@ -88,7 +88,7 @@ export default function TabsView(props: NodeViewProps) {
|
||||
return (
|
||||
<NodeViewWrapper data-type='tabs'>
|
||||
<Tabs value={String(activeTab)}>
|
||||
<Tabs.List>
|
||||
<Tabs.List style={{ marginBottom: 10 }}>
|
||||
{tabs.map(({ label, id }, index) => (
|
||||
<Tabs.Tab
|
||||
key={id}
|
||||
|
||||
Reference in New Issue
Block a user