Merge pull request #29 from HaecheonLee/bug/fix-remaining-popover-after-deleting-table

Fix to close remainig popover after deleting table
This commit is contained in:
1ilit 2024-04-11 07:30:17 +03:00 committed by GitHub
commit 2740aeeb9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,7 @@ export default function Table(props) {
onClick={openEditor} onClick={openEditor}
/> />
<Popover <Popover
key={tableData.key}
content={ content={
<div className="popover-theme"> <div className="popover-theme">
<div className="mb-2"> <div className="mb-2">

View File

@ -45,6 +45,7 @@ export default function TablesContextProvider({ children }) {
comment: "", comment: "",
indices: [], indices: [],
color: defaultBlue, color: defaultBlue,
key: Date.now(),
}, },
]); ]);
} }