From c9fd8cad1b9cf432347854c82953214045ff4738 Mon Sep 17 00:00:00 2001
From: jovanbaj <60139612+jovanbaj@users.noreply.github.com>
Date: Thu, 29 Jun 2023 11:46:30 +0200
Subject: [PATCH] Remove default autoFocus from textarea (#682)
---
.changeset/healthy-ways-protect.md | 5 +++++
src/MentionsInput.js | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
create mode 100644 .changeset/healthy-ways-protect.md
diff --git a/.changeset/healthy-ways-protect.md b/.changeset/healthy-ways-protect.md
new file mode 100644
index 00000000..48bc000c
--- /dev/null
+++ b/.changeset/healthy-ways-protect.md
@@ -0,0 +1,5 @@
+---
+"react-mentions": patch
+---
+
+Remove autofocus from textarea by default
diff --git a/src/MentionsInput.js b/src/MentionsInput.js
index 08c7c545..a69903ef 100755
--- a/src/MentionsInput.js
+++ b/src/MentionsInput.js
@@ -247,7 +247,7 @@ class MentionsInput extends React.Component {
}
renderTextarea = (props) => {
- return
+ return
}
setInputRef = (el) => {