Skip to content

Commit

Permalink
fixed a problem with incorrect cursor handling when textarea is used …
Browse files Browse the repository at this point in the history
…with autocomplete

#19132
  • Loading branch information
justtol committed Jan 14, 2020
1 parent 5633c27 commit 8ac0a4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ export default function useAutocomplete(props) {

// Prevent input blur when interacting with the combobox
const handleMouseDown = event => {
if (event.target.nodeName !== 'INPUT') {
if (event.target.getAttribute('id') !== id) {
event.preventDefault();
}
};
Expand Down

0 comments on commit 8ac0a4e

Please sign in to comment.