Skip to content

Commit

Permalink
Merge pull request drawdb-io#29 from HaecheonLee/bug/fix-remaining-po…
Browse files Browse the repository at this point in the history
…pover-after-deleting-table

Fix to close remainig popover after deleting table
  • Loading branch information
1ilit authored Apr 11, 2024
2 parents cd90fae + b788fd8 commit 2740aee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/EditorCanvas/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export default function Table(props) {
onClick={openEditor}
/>
<Popover
key={tableData.key}
content={
<div className="popover-theme">
<div className="mb-2">
Expand Down
1 change: 1 addition & 0 deletions src/context/TablesContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default function TablesContextProvider({ children }) {
comment: "",
indices: [],
color: defaultBlue,
key: Date.now(),
},
]);
}
Expand Down

0 comments on commit 2740aee

Please sign in to comment.