Skip to content

Commit 4f8d5be

Browse files
committed
fix: Destroy React renderer and dropdown on Escape
1 parent 16015e1 commit 4f8d5be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stories/typist-editor/extensions/hashtag-suggestion.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ const HashtagSuggestion: SuggestionExtensionResult<HashtagSuggestionItem> =
129129
}
130130

131131
if (props.event.key === 'Escape') {
132-
dropdown[0].hide()
132+
dropdown[0].destroy()
133+
reactRenderer.destroy()
133134
return true
134135
}
135136

0 commit comments

Comments
 (0)