[wp-trac] [WordPress Trac] #49516: IE11 Undefined reference when creating empty block in page

WordPress Trac noreply at wordpress.org
Wed Feb 26 14:47:38 UTC 2020


#49516: IE11 Undefined reference when creating empty block in page
--------------------------+-----------------------------
 Reporter:  bookdude13    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 Using IE 11 (dev build off of trunk).
 When creating a new post, if the cursor is in an empty block and you click
 enter, a new block is created underneath (normal behavior). This triggers
 an error in the console - "Impossible to obtain the property 'contains' on
 a null or undefined reference" in block-editor.js, line 16196:
 {{{
 6194   key: "isSelectionEligibleForScroll",
 6195       value: function isSelectionEligibleForScroll() {
 6196         return this.props.selectedBlockClientId &&
 this.ref.current.contains(document.activeElement) &&
 document.activeElement.isContentEditable;
 6197       }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49516>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list