Skip to content

Commit

Permalink
Switch to direct 'type' call
Browse files Browse the repository at this point in the history
Co-authored-by: Ella van Durpe <[email protected]>
  • Loading branch information
2 people authored and Glen Davies committed Jul 6, 2020
1 parent 2c541a7 commit 93495f3
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 @@ -462,7 +462,7 @@ export function isTextField( element ) {
];
return (
( nodeName === 'INPUT' &&
! nonTextInputs.includes( element.getAttribute( 'type' ) ) ) ||
! nonTextInputs.includes( element.type ) ) ||
nodeName === 'TEXTAREA' ||
contentEditable === 'true'
);
Expand Down

0 comments on commit 93495f3

Please sign in to comment.