Skip to content

Commit

Permalink
Include TEXTAREA as a tagName that should be focused
Browse files Browse the repository at this point in the history
  • Loading branch information
agerbens committed Feb 19, 2019
1 parent 77d48e3 commit 2102774
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/react-draft-wysiwyg.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export default class WysiwygEditor extends Component {
};

preventDefault: Function = (event: Object) => {
if (event.target.tagName === "INPUT" || event.target.tagName === "LABEL") {
if (event.target.tagName === "INPUT" || event.target.tagName === "LABEL" || event.target.tagName === "TEXTAREA") {
this.focusHandler.onInputMouseDown();
} else {
event.preventDefault();
Expand Down

0 comments on commit 2102774

Please sign in to comment.