Draft-js-plugins: error with fixed parent

Created on 25 May 2016  路  5Comments  路  Source: draft-js-plugins/draft-js-plugins

First of all I am very excited with this plugin.
But I have found one issue. When you place editor into block with position fixed you ran into emoji modal strange positioning.
You can simply test it on demo site
image

mentions-plugin question stale

All 5 comments

@berdof you can override the position suggestions function that is passed into the mentions plugin.

This FAQ explains how to override that function: https://github.com/draft-js-plugins/draft-js-plugins/blob/master/FAQ.md#why-is-there-no-popover-for-mentionsemoji-plugin

Here is an example position suggestions function that worked for me:
https://github.com/draft-js-plugins/draft-js-plugins/issues/206#issuecomment-219192040

@berdof glad you like it 馃槃
thx @mjrussell 馃憤

I just ran into this, with a position:relative parent. I'm not sure how to solve it without the dom node and walking up the parent tree searching for a non-position:static element. Is the dom node provided to positionSuggestions?

It'd be great if draft-js-plugins handled this case for us.

Edit: oh I see the comment in the other issue, I'll try that.

fixed with https://github.com/draft-js-plugins/draft-js-plugins/pull/309 & going to be in the next release

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

albertomr86 picture albertomr86  路  4Comments

firashamila33 picture firashamila33  路  4Comments

bojoyzhou picture bojoyzhou  路  3Comments

kaustubh-karkare picture kaustubh-karkare  路  3Comments

sessionboy picture sessionboy  路  3Comments