[GH-309] Prevent description duplication on Safari / macOS app (#366)

This removes a redundant manual blur of the input field. In the macOS app
this caused the blur handler to be retriggered which resulted in the description
being duplicated.

Fixes: #309
This commit is contained in:
Johannes Marbach 2021-05-10 17:19:55 +02:00 committed by GitHub
parent 2fb75a6462
commit 1d3820c3ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,7 +128,6 @@ const MarkdownEditor = (props: Props): JSX. Element => {
stateAndPropsRef.current.onBlur(newText)
}
instance.getInputField()?.blur()
stateAndPropsRef.current.setIsEditing(false)
},
focus: () => {