mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:47:10 +00:00
fix: page freeze when handling formula field in sub-table after add,select and delete record (#4613)
* fix: page freeze when handling formula field in sub-table after add, select, and delete record * fix: bug * fix: bug * refactor: code improve * refactor: code improve * refactor: code improve * fix: bug * fix: bug
This commit is contained in:
parent
585fea650e
commit
5d48b3b5aa
@ -102,7 +102,7 @@ export const SubTable: any = observer(
|
||||
const { selectedRows, setSelectedRows } = useContext(RecordPickerContext);
|
||||
return {
|
||||
onClick() {
|
||||
selectedRows.map((v) => field.value.push(markRecordAsNew({ ...v })));
|
||||
selectedRows.map((v) => field.value.push(v));
|
||||
field.onInput(field.value);
|
||||
setSelectedRows([]);
|
||||
setVisible(false);
|
||||
|
@ -71,7 +71,7 @@ export const ValueDynamicComponent = (props: ValueDynamicComponentProps) => {
|
||||
[collectionName, mode, setValue],
|
||||
);
|
||||
const textAreaStyle = useMemo(() => {
|
||||
return { minWidth: 460, marginRight: 15 };
|
||||
return { minWidth: 460 };
|
||||
}, []);
|
||||
const compatScope = useMemo(() => {
|
||||
return compatOldVariables(scope, {
|
||||
@ -120,7 +120,6 @@ export const ValueDynamicComponent = (props: ValueDynamicComponentProps) => {
|
||||
value={mode}
|
||||
style={{ width: 150 }}
|
||||
onChange={(value) => {
|
||||
console.log(value);
|
||||
setMode(value);
|
||||
setValue({
|
||||
mode: value,
|
||||
|
Loading…
Reference in New Issue
Block a user