Skip to content

Copy / Paste error core/paragraph using InnerBlocks #12774

@fishstix81

Description

@fishstix81

Describe the bug
Using InnerBlocks with a nested block template, you can not copy / paste inside of the core/paragraph block. It results in a console error and the text is not copied into the block

Uncaught TypeError: r is not a function
    at t.value (index.js?ver=1542840426:formatted:830)
    at t.value (index.js?ver=1542840430:formatted:11004)
    at Object.Fg (react-dom.min.713f0afa.js:formatted:4357)
    at Eg (react-dom.min.713f0afa.js:formatted:42)
    at Hg (react-dom.min.713f0afa.js:formatted:45)
    at ae (react-dom.min.713f0afa.js:formatted:96)
    at Ig (react-dom.min.713f0afa.js:formatted:4390)
    at Hc (react-dom.min.713f0afa.js:formatted:113)
    at Jc (react-dom.min.713f0afa.js:formatted:150)
    at gh (react-dom.min.713f0afa.js:formatted:872)

core/heading works fine. If I begin typing in the core/paragraph and then copy / paste, the new text is added without the console error.

To Reproduce
Add a custom block that uses InnerBlocks with a template that includes core/pargraph. Something like

[core/column, {}, [
  [core/paragraph, {}]
]]

Expected behavior
core/paragraph should not have issues with copy / paste when used inside of a nested block

Desktop (please complete the following information):

  • OS: OsMojave
  • Browser chrom

Additional context
Gutenberg version 4.5.0

Metadata

Metadata

Labels

Needs TestingNeeds further testing to be confirmed.[Block] ParagraphAffects the Paragraph Block[Feature] Nested / Inner BlocksAnything related to the experience of nested/inner blocks inside a larger container, like Group or P

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions