Editor crash with Minified React error #185

UI Components for React
Post Reply
Sakshi.Gupta6
Posts: 9
Joined: 05 Jul 2021, 15:28

08 Dec 2021, 15:56

Hi,

When I copy some content from one editor and paste that to another editor or with in same editor, on paste onTextChange method of editor, stuck in infinite loop and application crash with this error:
Minified React error #185; visit https://reactjs.org/docs/error-decoder. ... ariant=185

Console output before 'Maximum update depth exceeded something like this, keeps adding <p><br></p>:

Code: Select all

<p>Cost Model: Custom</p><p><br></p><p><br></p><ol><li><strong>Facility Cost Pool</strong></li><li><br></li></ol>
<p>Cost Model: Custom</p><p><br></p><p><br></p><p><br></p><ol><li><strong>Facility Cost Pool</strong></li><li><br></li></ol>
 <p>Cost Model: Custom</p><p><br></p><p><br></p><p><br></p><p><br></p><ol><li><strong>Facility Cost Pool</strong></li><li><br></li></ol>
<p>Cost Model: Custom</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><ol><li><strong>Facility Cost Pool</strong></li><li><br></li></ol>
Tried in prime react website demo editor as well with pasting the same content , prime react website also crashing with that content.

If anyone faced that same issue or have the solution do suggest me please.

Thanks!
Last edited by Sakshi.Gupta6 on 09 Dec 2021, 16:27, edited 3 times in total.

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

08 Dec 2021, 22:06

Bug Issue: https://github.com/primefaces/primereact/issues/2271

I fixed it already with a PR but it has not been merged by PrimeTek yet: https://github.com/primefaces/primereact/pull/2405
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Sakshi.Gupta6
Posts: 9
Joined: 05 Jul 2021, 15:28

09 Dec 2021, 16:21

Thanks Melloware,
Is there any expected time to merge that fix ?

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

11 Dec 2021, 04:20

That is up to PrimeTek. I am just an open source contributor so I do not know any timeline.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests