Support » Plugin: Block Pattern Builder » Moving cursor out of the editor with text selected crashes the editor

  • Hi Justin,

    I stumbled upon a strange bug. When I select some text in the block editor in a paragraph or heading AND keep it selected (mousedown) AND move the cursor (accidently) out of the editor area the block editor crashes.

    I have not had this often myself but some of my editors are less mouse-steady and frequently lose content this way. So I turned the block pattern plugin off to solve the problem for now.

    PS Running the latest version of all plugins on WP 5.5.3. It happens in recent browsers (tested on Firefox 83 and Chrome 87).

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • I get the same error, with WordPress 5.6

    Here is the more detailed error message:

    Error: An error occurred while running 'mapSelect': Cannot read property 'name' of null
    The error may be correlated with this previous error:
    TypeError: Cannot read property 'name' of null
        at serializeBlock (https://digital-habitat.io/wp-includes/js/dist/blocks.js?ver=65abb57f00d1d2ab3d3b16331cbbf560:9334:25)
        at https://digital-habitat.io/wp-includes/js/dist/blocks.js?ver=65abb57f00d1d2ab3d3b16331cbbf560:9356:12
        at Array.map (<anonymous>)
        at serialize (https://digital-habitat.io/wp-includes/js/dist/blocks.js?ver=65abb57f00d1d2ab3d3b16331cbbf560:9355:61)
        at Object.current (https://digital-habitat.io/wp-content/plugins/block-pattern-builder/public/js/editor.js?id=0fa3860205cf6b634f29:1:2467)
        at onStoreChange (https://digital-habitat.io/wp-includes/js/dist/data.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:3694:46)
        at https://digital-habitat.io/wp-includes/js/dist/data.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:3721:9
        at https://digital-habitat.io/wp-includes/js/dist/data.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2813:14
        at Array.forEach (<anonymous>)
        at globalListener (https://digital-habitat.io/wp-includes/js/dist/data.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:2812:15)
    
    Original stack trace:
        at useSelect (https://digital-habitat.io/wp-includes/js/dist/data.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25:3669:13)
        at render (https://digital-habitat.io/wp-content/plugins/block-pattern-builder/public/js/editor.js?id=0fa3860205cf6b634f29:1:2324)
        at renderWithHooks (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:14938:20)
        at updateFunctionComponent (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:17169:22)
        at beginWork (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:18745:18)
        at HTMLUnknownElement.callCallback (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:182:16)
        at Object.invokeGuardedCallbackDev (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:231:18)
        at invokeGuardedCallback (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:286:33)
        at beginWork$1 (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:23338:9)
        at performUnitOfWork (https://digital-habitat.io/wp-includes/js/dist/vendor/react-dom.js?ver=16.13.1:22289:14)
Viewing 1 replies (of 1 total)
  • The topic ‘Moving cursor out of the editor with text selected crashes the editor’ is closed to new replies.