Skip to content

Commit

Permalink
Remove default autoFocus from textarea (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
jovanbaj committed Jun 29, 2023
1 parent ee716e0 commit c9fd8ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/healthy-ways-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-mentions": patch
---

Remove autofocus from textarea by default
2 changes: 1 addition & 1 deletion src/MentionsInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class MentionsInput extends React.Component {
}

renderTextarea = (props) => {
return <textarea autoFocus ref={this.setInputRef} {...props} />
return <textarea ref={this.setInputRef} {...props} />
}

setInputRef = (el) => {
Expand Down

1 comment on commit c9fd8ca

@vercel
Copy link

@vercel vercel bot commented on c9fd8ca Jun 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

react-mentions – ./

react-mentions-git-master-signavio.vercel.app
react-mentions.vercel.app
react-mentions-signavio.vercel.app

Please sign in to comment.