Skip to content

Commit

Permalink
fix(table): Record Creator re-render when props change (ant-design#8018)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelemi committed Dec 27, 2023
1 parent fa197f2 commit c0187d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/table/src/components/EditableTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ function EditableTable<
)
);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [recordCreatorProps == false, maxLength, value?.length]);
}, [recordCreatorProps, maxLength, value?.length]);

const buttonRenderProps = useMemo(() => {
if (!creatorButtonDom) {
Expand Down

0 comments on commit c0187d2

Please sign in to comment.