mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:35:20 +00:00
Revert "fix: linkage rules in subtable/subform affecting blocks in association field popups"
This reverts commit 9417ccc295
.
This commit is contained in:
parent
c0caf63b97
commit
9243085ab4
@ -20,7 +20,7 @@ import { useActionContext } from './hooks';
|
||||
import { useSetAriaLabelForDrawer } from './hooks/useSetAriaLabelForDrawer';
|
||||
import { ActionDrawerProps, ComposedActionDrawer, OpenSize } from './types';
|
||||
import { useZIndexContext, zIndexContext } from './zIndexContext';
|
||||
import { FlagProvider } from '../../../flag-provider';
|
||||
|
||||
const DrawerErrorFallback: React.FC<FallbackProps> = (props) => {
|
||||
const { visible, setVisible } = useActionContext();
|
||||
return (
|
||||
@ -112,9 +112,7 @@ export const InternalActionDrawer: React.FC<ActionDrawerProps> = observer(
|
||||
|
||||
export const ActionDrawer: ComposedActionDrawer = (props) => (
|
||||
<ErrorBoundary FallbackComponent={DrawerErrorFallback} onError={(err) => console.log(err)}>
|
||||
<FlagProvider isInSubTable={false} isInSubForm={false}>
|
||||
<InternalActionDrawer {...props} />
|
||||
</FlagProvider>
|
||||
<InternalActionDrawer {...props} />
|
||||
</ErrorBoundary>
|
||||
);
|
||||
|
||||
|
@ -21,7 +21,6 @@ import { useActionContext } from './hooks';
|
||||
import { useSetAriaLabelForModal } from './hooks/useSetAriaLabelForModal';
|
||||
import { ActionDrawerProps, ComposedActionDrawer, OpenSize } from './types';
|
||||
import { useZIndexContext, zIndexContext } from './zIndexContext';
|
||||
import { FlagProvider } from '../../../flag-provider';
|
||||
|
||||
const ModalErrorFallback: React.FC<FallbackProps> = (props) => {
|
||||
const { visible, setVisible } = useActionContext();
|
||||
@ -156,9 +155,7 @@ export const InternalActionModal: React.FC<ActionDrawerProps<ModalProps>> = obse
|
||||
|
||||
export const ActionModal: ComposedActionDrawer<ModalProps> = (props) => (
|
||||
<ErrorBoundary FallbackComponent={ModalErrorFallback} onError={(err) => console.log(err)}>
|
||||
<FlagProvider isInSubTable={false} isInSubForm={false}>
|
||||
<InternalActionModal {...props} />
|
||||
</FlagProvider>
|
||||
<InternalActionModal {...props} />
|
||||
</ErrorBoundary>
|
||||
);
|
||||
|
||||
|
@ -16,7 +16,6 @@ import { TabsContextProvider, useTabsContext } from '../tabs/context';
|
||||
import { useActionPageStyle } from './Action.Page.style';
|
||||
import { usePopupOrSubpagesContainerDOM } from './hooks/usePopupSlotDOM';
|
||||
import { useZIndexContext, zIndexContext } from './zIndexContext';
|
||||
import { FlagProvider } from '../../../flag-provider';
|
||||
|
||||
export function ActionPage({ level }) {
|
||||
const filedSchema = useFieldSchema();
|
||||
@ -37,15 +36,13 @@ export function ActionPage({ level }) {
|
||||
}
|
||||
|
||||
const actionPageNode = (
|
||||
<FlagProvider isInSubTable={false} isInSubForm={false}>
|
||||
<div className={styles.container} style={style}>
|
||||
<TabsContextProvider {...tabContext} tabBarExtraContent={<BackButtonUsedInSubPage />}>
|
||||
<zIndexContext.Provider value={style.zIndex}>
|
||||
<RecursionField schema={filedSchema} onlyRenderProperties />
|
||||
</zIndexContext.Provider>
|
||||
</TabsContextProvider>
|
||||
</div>
|
||||
</FlagProvider>
|
||||
<div className={styles.container} style={style}>
|
||||
<TabsContextProvider {...tabContext} tabBarExtraContent={<BackButtonUsedInSubPage />}>
|
||||
<zIndexContext.Provider value={style.zIndex}>
|
||||
<RecursionField schema={filedSchema} onlyRenderProperties />
|
||||
</zIndexContext.Provider>
|
||||
</TabsContextProvider>
|
||||
</div>
|
||||
);
|
||||
|
||||
const container = getContainerDOM();
|
||||
|
Loading…
Reference in New Issue
Block a user