From c1d386d932a3a24417d1fde7172778ab8f72c815 Mon Sep 17 00:00:00 2001 From: electron97 <132813311+electron97@users.noreply.github.com> Date: Mon, 16 Oct 2023 10:44:11 +0530 Subject: [PATCH] fix: disabled form item in the settings can still be operated via keyboard (#4605) --- .../components/affine/new-workspace-setting-detail/publish.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/core/src/components/affine/new-workspace-setting-detail/publish.tsx b/apps/core/src/components/affine/new-workspace-setting-detail/publish.tsx index 29ec364b81c87..c5236059e74d2 100644 --- a/apps/core/src/components/affine/new-workspace-setting-detail/publish.tsx +++ b/apps/core/src/components/affine/new-workspace-setting-detail/publish.tsx @@ -12,6 +12,7 @@ import { useAFFiNEI18N } from '@affine/i18n/hooks'; import { Button } from '@toeverything/components/button'; import { Tooltip } from '@toeverything/components/tooltip'; import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name'; +import { noop } from 'foxact/noop'; import { useCallback, useEffect, useMemo, useState } from 'react'; import { toast } from '../../../utils'; @@ -100,7 +101,7 @@ const FakePublishPanelAffine = (_props: FakePublishPanelAffineProps) => {
- +