diff --git a/rsconcept/frontend/src/components/Shared/ConstituentaPicker.tsx b/rsconcept/frontend/src/components/Shared/ConstituentaPicker.tsx index 49c591fd..21ea16f7 100644 --- a/rsconcept/frontend/src/components/Shared/ConstituentaPicker.tsx +++ b/rsconcept/frontend/src/components/Shared/ConstituentaPicker.tsx @@ -90,7 +90,7 @@ function ConstituentaPicker({ className='overflow-y-auto text-sm border select-none' style={{ maxHeight: size, minHeight: size }} > - -
- + +

Аргументы отсутствуют

} @@ -142,7 +142,7 @@ function ArgumentsTab({ state, schema, partialUpdate }: ArgumentsTabProps) { />
-
+
@@ -171,10 +171,11 @@ function ArgumentsTab({ state, schema, partialUpdate }: ArgumentsTabProps) { data={schema?.items} onSelectValue={handleSelectConstituenta} prefixID={prefixes.cst_modal_list} - rows={5} + rows={7} /> ({}); const [ substitutes, updateSubstitutes ] = usePartialUpdate({ definition: '', @@ -53,7 +53,7 @@ function DlgConstituentaTemplate({ hideWindow, schema, onCreate }: DlgConstituen updateConstituenta({ alias: createAliasFor(constituenta.cst_type, schema) }); }, [constituenta.cst_type, updateConstituenta, schema]); - useEffect( + useLayoutEffect( () => { setValidated(validateCstAlias(constituenta.alias, constituenta.cst_type, schema)); }, [constituenta.alias, constituenta.cst_type, schema]); @@ -119,6 +119,8 @@ function DlgConstituentaTemplate({ hideWindow, schema, onCreate }: DlgConstituen selectedIndex={activeTab} onSelect={setActiveTab} defaultFocus + forceRenderTabPanel + selectedTabClassName='clr-selected' className='flex flex-col items-center' > @@ -148,14 +150,14 @@ function DlgConstituentaTemplate({ hideWindow, schema, onCreate }: DlgConstituen
- + - + - +