Skip to content

Commit

Permalink
fix: Destroy React renderer and dropdown on Escape
Browse files Browse the repository at this point in the history
  • Loading branch information
jvalente committed Sep 19, 2024
1 parent 16015e1 commit 4f8d5be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stories/typist-editor/extensions/hashtag-suggestion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ const HashtagSuggestion: SuggestionExtensionResult<HashtagSuggestionItem> =
}

if (props.event.key === 'Escape') {
dropdown[0].hide()
dropdown[0].destroy()
reactRenderer.destroy()
return true
}

Expand Down

0 comments on commit 4f8d5be

Please sign in to comment.