Skip to content
Prev Previous commit
Next Next commit
replacing childNodes[ 0 ] with firstChild
  • Loading branch information
youknowriad committed Apr 27, 2017
commit 71061289c56a27262d38ff2ee490b9d69f3b6641
2 changes: 1 addition & 1 deletion blocks/components/editable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default class Editable extends wp.element.Component {
do {
const child = element;
element = element.parentNode;
if ( element.childNodes[ 0 ] !== child ) {
if ( element.firstChild !== child ) {
return false;
}
} while ( element !== body );
Expand Down