Opened 10 years ago
Closed 10 years ago
#12865 closed Bug (fixed)
[Notification] Closing notification by clicking the close button should not blur the editor
Reported by: | Piotrek Koszuliński | Owned by: | Piotr Jasiun |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.5.0 Beta |
Component: | General | Version: | 4.5.0 Beta |
Keywords: | Cc: |
Description
- Open http://tests.ckeditor.dev:1030/tests/plugins/notification/manual/inline
- Create notification.
- Focus editor.
- Click "x".
- Editor is blurred.
Change History (9)
comment:1 Changed 10 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 10 years ago by
Owner: | set to Piotr Jasiun |
---|---|
Status: | confirmed → assigned |
comment:3 Changed 10 years ago by
Status: | assigned → review |
---|
comment:4 Changed 10 years ago by
Status: | review → review_failed |
---|
Manual test is needed (tags: 4.5.0, tc).
comment:5 follow-up: 6 Changed 10 years ago by
I'm also unsure whether the patch is correct. What if editor wasn't focused before the hide() method was called? Perhaps we can ignore this and perhaps it's even better because the focus stays in the editor, but that proves that we need a manual test. I'm especially curious if focusing will not cause scroll, so the tc could contain a long inline editor.
comment:6 Changed 10 years ago by
Status: | review_failed → review |
---|
Replying to Reinmar:
I'm also unsure whether the patch is correct. What if editor wasn't focused before the hide() method was called? Perhaps we can ignore this and perhaps it's even better because the focus stays in the editor, but that proves that we need a manual test. I'm especially curious if focusing will not cause scroll, so the tc could contain a long inline editor.
I focus editor on hide
only if notification is handled by the notification area, so the notification is above the editors content. It does not look like unexpected behavior than editor get focus if I click on the element above the content. Focus does not cause scroll (at least on Chrome), but no strange would it be if the editor move user to the position of the selection when he close notification.
I rebased branch on the newest major and pushed manual test. Changes in t/12865.
comment:7 Changed 10 years ago by
Status: | review → review_failed |
---|
Guess what happens when you're e.g. uploading an image in one editor and working in another one? :>
comment:8 Changed 10 years ago by
Status: | review_failed → review |
---|
I moved the focus call from the hide method to the click listener. It makes more sense and works fine. Branch rebased on the newest major. Changes in the same branch.
comment:9 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | review → closed |
Fixed on major with git:f887b79.
Changes in t/12865.