Skip to content

Commit

Permalink
Add fix to make inputs of type email return true from isTextField to …
Browse files Browse the repository at this point in the history
…all native paste to handle pasting in email inputs
  • Loading branch information
Glen Davies committed Mar 26, 2020
1 parent 4da1dd4 commit d3ff16e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/dom/src/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ export function isTextField( element ) {

return (
( nodeName === 'INPUT' && selectionStart !== null ) ||
element.getAttribute( 'type' ) === 'email' ||
nodeName === 'TEXTAREA' ||
contentEditable === 'true'
);
Expand Down

0 comments on commit d3ff16e

Please sign in to comment.