Skip to content

Commit 2740aee

Browse files
authored
Merge pull request #29 from HaecheonLee/bug/fix-remaining-popover-after-deleting-table
Fix to close remainig popover after deleting table
2 parents cd90fae + b788fd8 commit 2740aee

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/components/EditorCanvas/Table.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export default function Table(props) {
106106
onClick={openEditor}
107107
/>
108108
<Popover
109+
key={tableData.key}
109110
content={
110111
<div className="popover-theme">
111112
<div className="mb-2">

src/context/TablesContext.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default function TablesContextProvider({ children }) {
4545
comment: "",
4646
indices: [],
4747
color: defaultBlue,
48+
key: Date.now(),
4849
},
4950
]);
5051
}

0 commit comments

Comments
 (0)