Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aligning image does not work in react 16.0.0 #530

Closed
khj809 opened this issue Nov 20, 2017 · 7 comments
Closed

Aligning image does not work in react 16.0.0 #530

khj809 opened this issue Nov 20, 2017 · 7 comments

Comments

@khj809
Copy link

khj809 commented Nov 20, 2017

I tested image alignment feature in both react 15.6.2 and 16.0.0.

In 16.0.0, the tooltip [L][C][R] is shown when mouse is hovered on image, but it immediately disappears when mouse leaves the image area, which makes me not able to set alignment.

In 15.6.2 it works with no problem. (maybe same in lower versions, not tested though)

@export-mike
Copy link

@khj809 ahhh react 15 it works interesting...

@MattWillcox
Copy link

has anyone come up with a workaround for this?

@export-mike
Copy link

Hi @MattWillcox I found it to randomly work at times. on second click on the L, C, R buttons it works for me.

I'm currently looking to move to draft-js-plugins

@MattWillcox
Copy link

This issue has been resolved in an updated version of react @jpuri

facebook/react#11164

@jpuri
Copy link
Owner

jpuri commented Jan 15, 2018

@MattWillcox thx
I can close the issue, editor does not bundles react with it, update will be required in code using the editor.

@jpuri jpuri closed this as completed Jan 15, 2018
@hafeez1042
Copy link

Using "react": "16.8.5", having the issue

@sachinit254
Copy link

sachinit254 commented Dec 23, 2023

@jpuri Alignment is not working in first attempt also getting "Cannot read properties of null (reading 'focus')" on alignment button click.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants