Ckeditor5: [Edge] Editor doesn't get focus after dismissing the text alternative balloon

Created on 13 Dec 2017  ยท  11Comments  ยท  Source: ckeditor/ckeditor5

๐Ÿž Is this a bug report or feature request? (choose one)

  • Bug report

๐Ÿ’ป Version of CKEditor

1.0.0-alpha2

๐Ÿ“‹ Steps to reproduce

  1. Go to http://localhost:8125/ckeditor5-core/tests/manual/article.html.
  2. Focus the image.
  3. Open text alternative balloon.
  4. Put the selection in Heading 1.
  5. Try to type something.

โœ… Expected result

You should be able to type in Heading 1.

โŽ Actual result

The image toolbar is still visible and there is no possibility to type.

๐Ÿ“ƒ Other details that might be useful

GIF

bug_cke5

Notes

If you try to press Delete, it will work.

Other information

OS: Windows 10
Browser: Edge 16

edge accessibility bug

Most helpful comment

Since, I'm not sure what this._hideForm( true ) is I guess @Mgsy will have hard time finding this out too :D

I guess @oleq asked to pass true argument to this._hideForm() inside clickOutsideHandler in imagetextalternative.js :)

After this change, problem has disappeared. Balloon has closed and focus appeared on the image.

bug_cke5

All 11 comments

It could somehow (?) be that the input in the text alt balloon retains the focus when the balloon disappears and the focus is not transferred to editable (the editable does not even get the blue outline) but it's actually lost.

Feels more like a bug in Edge than actual CKE problem but it looks critical to me, making the editor useless after a very common UI interaction. WDYT @Reinmar?

Checking document.activeElement may give an answer.

~I wouldn't be that surprised if the focus stayed in the input despite it disappearance. Does we manage the focus manually in helpers such as closeOnEsc() or let the browser decide? If the latter, then there may be a quite easy way to fix it.~

Uh, sorry, I misread the TC. So it seems to be an Edge bug and yep, it's quite severe.

We handle that manually but in the case of the clickOutsideHandler we leave it up to the browser. It could be that. @Mgsy, can you use this._hideForm( true ) there and see if the issue is gone?

Since, I'm not sure what this._hideForm( true ) is I guess @Mgsy will have hard time finding this out too :D

Whatever you find, if it's Edge, it must be reported.

Since, I'm not sure what this._hideForm( true ) is I guess @Mgsy will have hard time finding this out too :D

I guess @oleq asked to pass true argument to this._hideForm() inside clickOutsideHandler in imagetextalternative.js :)

After this change, problem has disappeared. Balloon has closed and focus appeared on the image.

bug_cke5

Just make sure the same patch is also used in ckeditor5-link.

Since _hideForm() is private and always get true, can we just remove this param at all?

BTW, on Esc the focus should actually move back to the toolbar if it was there.

So, in the future, when working on a11y we'll need to remember which element hold focus before the form was opened and move focus back there. But that's future.

This bug is fixed in the new upcoming Edge v.79.0.309.56.

Fixed in the new Edge release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Reinmar picture Reinmar  ยท  3Comments

devaptas picture devaptas  ยท  3Comments

pjasiun picture pjasiun  ยท  3Comments

benjismith picture benjismith  ยท  3Comments

oleq picture oleq  ยท  3Comments