Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

t/206: BalloonPanelView should not be focusable #208

Closed
wants to merge 1 commit into from
Closed

Conversation

oleq
Copy link
Member

@oleq oleq commented Apr 20, 2017

Suggested merge commit message (convention)

Fix: BalloonPanelView should not be focusable. Closes ckeditor/ckeditor5#5344.


Additional information

BPV has @mixin ck-unselectable enabled by default but CSS user-select does not affect focus.

Removing tabindex="-1" attribute disabled panel focus but it didn't prevent focus loss, so when clicked the panel didn't get focus but editor focus was lost, which was evident in editor-inline.

Only preventDefault of the mousedown event disabled focus properly and prevented focus loss.

@oleq oleq requested a review from oskarwrobel April 20, 2017 09:27
@oleq
Copy link
Member Author

oleq commented Apr 20, 2017

Additional note for the reviewer: please make sure other features than Link using BPV work properly like editor-inline toolbar, image toolbar, image alt text balloon etc.

@oskarwrobel
Copy link
Contributor

I'm not able to select input by a click.

apr-21-2017 09-21-08

tabindex: -1
on: {
// https://github.com/ckeditor/ckeditor5-ui/issues/206
mousedown: bind.to( evt => evt.preventDefault() )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes impossible to select any text on balloon.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You couldn't do it anyway because of @mixin ck-unselectable I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm. We should probably filter target then. I'll check this out.

@oleq
Copy link
Member Author

oleq commented Apr 21, 2017

A better solution in #213.

@oleq oleq closed this Apr 21, 2017
@oleq oleq deleted the t/206 branch July 13, 2017 09:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BalloonPanelView should not be focusable
2 participants