Skip to content

Commit

Permalink
remove unnecessary code for destroying and removing component element…
Browse files Browse the repository at this point in the history
… in React suggestion.js
  • Loading branch information
bdbch committed Jul 31, 2024
1 parent 9c3d51a commit 138de0c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions demos/src/Nodes/Mention/React/suggestion.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export default {
onKeyDown(props) {
if (props.event.key === 'Escape') {
component.destroy()
component.element.remove()

return true
}
Expand All @@ -101,7 +100,6 @@ export default {

onExit() {
component.destroy()
component.element.remove()
},
}
},
Expand Down

0 comments on commit 138de0c

Please sign in to comment.