React-quill: Link pops up outside of editor

Created on 15 Apr 2017  路  3Comments  路  Source: zenoamaro/react-quill

In the quill repo this bug was fixed a while ago, but I'm still seeing this issue:
https://github.com/quilljs/quill/issues/360.

I've tried playing with the styling and it doesn't seem to change anything. Open the given codepen and create a link - the pop up opens outside of the editor.

http://codepen.io/alexkrolick/pen/xgyOXQ/left?editors=0010#0

screen shot 2017-04-14 at 4 50 45 pm

Quill version:

  • [ ] master
  • [ ] 0.4.1
  • [ ] 1.0.0-beta-1
  • [ ] 1.0.0-beta-2
  • [ ] 1.0.0-beta-3
  • [ ] 1.0.0-beta-4
  • [ ] 1.0.0-beta-5
  • [ X] 1.0.0-rc-1
  • [ ] Other (fork)

Most helpful comment

Add the bounds prop to constraint all the popups inside a DOM element:

bounds={'.app'}

https://quilljs.com/docs/configuration/#bounds
https://github.com/zenoamaro/react-quill/tree/master#props

All 3 comments

Add the bounds prop to constraint all the popups inside a DOM element:

bounds={'.app'}

https://quilljs.com/docs/configuration/#bounds
https://github.com/zenoamaro/react-quill/tree/master#props

Hi, I have same issue and when adding the bound prop I keep getting:
Warning: Failed prop type: Invalid propboundssupplied toQuill`` no matter what value I pass, even tried with document.body and got the same error.

For anyone like @dasm30, you have to pass in a string instead of the node (ref: https://github.com/zenoamaro/react-quill/issues/519)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Drejerdk picture Drejerdk  路  4Comments

LiuChangFreeman picture LiuChangFreeman  路  3Comments

camliu89 picture camliu89  路  4Comments

Fensterbank picture Fensterbank  路  3Comments

shaneshearer-andculture picture shaneshearer-andculture  路  4Comments