Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"flow-bin": "^0.60.1",
"html-webpack-plugin": "3.2.0",
"husky": "1.2.1",
"jest": "23.6.0",
"jest": "24.8.0",
"lint-staged": "8.1.0",
"prettier": "1.15.3",
"react": "16.6.0",
Expand All @@ -78,7 +78,7 @@
"wait-on": "^3.2.0",
"webpack": "4.27.1",
"webpack-cli": "3.1.2",
"webpack-dev-server": "3.1.14"
"webpack-dev-server": "3.7.2"
},
"peerDependencies": {
"prop-types": "^15.0.0",
Expand Down
7 changes: 6 additions & 1 deletion src/Textarea.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,12 @@ class ReactTextareaAutocomplete extends React.Component<
// If this is a click: e.target is the textarea, and e.relatedTarget is the thing
// that was actually clicked. If we clicked inside the autoselect dropdown, then
// that's not a blur, from the autoselect's point of view, so then do nothing.
const el = e.relatedTarget;
let el = e.relatedTarget;
// IE11 doesn't know about `relatedTarget` // https://stackoverflow.com/a/49325196/2719917
if (el === null) {
el = document.activeElement;
}

if (
this.dropdownRef &&
el instanceof Node &&
Expand Down
Loading