ckeditor4-react icon indicating copy to clipboard operation
ckeditor4-react copied to clipboard

Format dropdown does not opening, when editor is used in drawer

Open BrijeshDarji opened this issue 5 years ago • 6 comments

Are you reporting a feature request or a bug?

Bug

Expected result

It should open without any issue

Actual result

It opens and closes automatically within no time. So unable to use the options provided in the Format dropdown.

BrijeshDarji avatar Feb 03 '21 11:02 BrijeshDarji

Hello, please provide a demo where we could reproduce and debug the issue.

Dumluregn avatar Feb 03 '21 11:02 Dumluregn

Hi @Dumluregn, kindly check this https://codesandbox.io/s/vigilant-ritchie-i8tm0?file=/src/App.js

Steps to reproduce,

  1. In the editor's top, there is one dropdown in which Normal formatting is selected.
  2. On clicking that dropdown options(Heading 1, Heading 2, Heading 3, Formating) will be displayed. (Works fine and as expected)
  3. Now click on the OPEN DRAWER button.
  4. In the Drawer, an editor will be displayed and repeat the same steps 1 & 2.
  5. Here on clicking that dropdown options will be closed as soon as you open. (Not expected behavior)

BrijeshDarji avatar Feb 03 '21 18:02 BrijeshDarji

I wonder if it might be related to ckeditor/ckeditor4#4461 and ckeditor/ckeditor4#4462.

f1ames avatar Feb 04 '21 12:02 f1ames

@BrijeshDarji1 thank you for the sample, unfortunately I can reproduce this issue.

@f1ames this is a little different since no error is thrown here - dropdown just closes as soon as it is opened, so it looks like a problem with focus being instantly moved elsewhere. So I'm not sure but those problems don't seem to be tied.

Dumluregn avatar Feb 04 '21 16:02 Dumluregn

Hello @Dumluregn @BrijeshDarji1, Did you find any solution to it? I am facing the same scenario while using the editor in a drawer.

hhgandhi avatar Sep 02 '21 04:09 hhgandhi

Hi, according to the newest releases - the issue might be potentially solved. Please - take a moment to verify it.

sculpt0r avatar Feb 10 '22 11:02 sculpt0r