Skip to content
Snippets Groups Projects
Commit 1149076f authored by Kasper Seweryn's avatar Kasper Seweryn 🥞
Browse files

Fix textarea focus

parent 2e637651
No related branches found
No related tags found
1 merge request!1Implement all components
Pipeline #23559 passed with stages
in 8 minutes and 8 seconds
......@@ -172,12 +172,17 @@ const link = async () => {
textarea.value.setSelectionRange(selectionEnd + 3, selectionEnd + 6)
return commit()
}
// Fix focus
const focus = () => textarea.value.focus()
</script>
<template>
<div
:class="{ 'has-preview': preview }"
class="funkwhale textarea"
@mousedown.prevent="focus"
@mouseup.prevent="focus"
>
<fw-markdown :md="value" class="preview" />
<textarea
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment