Skip to content

Commit

Permalink
Limit to just input nodes with attribute type=email
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Davies committed Mar 27, 2020
1 parent d3ff16e commit 01b6862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dom/src/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ export function isTextField( element ) {

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

0 comments on commit 01b6862

Please sign in to comment.