Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita621bdf

Browse files
clear column type render comp to fix editing issue
1 parentf589510 commita621bdf

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

‎client/packages/lowcoder/src/comps/comps/tableComp/column/columnTypeComps/simpleTextComp.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ const SimpleTextEditView = React.memo(({ value, onChange, onChangeEnd }: SimpleT
5555
variant="borderless"
5656
onChange={handleChange}
5757
onBlur={onChangeEnd}
58-
onPressEnter={onChangeEnd}
59-
/>
60-
)});
58+
onPressEnter={onChangeEnd}
59+
/>
60+
);
61+
});
6162

6263
constSimpleTextPropertyView=React.memo(({ children}:{children:RecordConstructorToComp<typeofchildrenMap>})=>{
6364
returnuseMemo(()=>(

‎client/packages/lowcoder/src/comps/comps/tableComp/column/tableColumnComp.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ export class ColumnComp extends ColumnInitComp {
434434
)
435435
)
436436
);
437+
// clear render comp cache when change set is cleared
438+
this.children.render.dispatch(RenderComp.clearAction());
437439
}
438440

439441
dispatchClearInsertSet(){

‎client/packages/lowcoder/src/comps/comps/tableComp/tableComp.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,8 @@ let TableTmpComp = withViewFn(TableImplComp, (comp) => {
548548

549549
constwithEditorModeStatus=(Component:any)=>(props:any)=>{
550550
consteditorModeStatus=useContext(EditorContext).editorModeStatus;
551-
return<Component{...props}editorModeStatus={editorModeStatus}/>;
551+
const{ref, ...otherProps}=props;
552+
return<Component{...otherProps}editorModeStatus={editorModeStatus}/>;
552553
};
553554

554555
// Use this HOC when defining TableTmpComp

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp