Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Fix bug #7402 (Focus not set to inline editor after creating new rule)#7419

Merged
njx merged 1 commit intomasterfrom
pflynn/fix-dropdown-focus-restore
Apr 5, 2014
Merged

Fix bug #7402 (Focus not set to inline editor after creating new rule)#7419
njx merged 1 commit intomasterfrom
pflynn/fix-dropdown-focus-restore

Conversation

@peterflynn
Copy link
Copy Markdown
Member

Fix bug #7402 -- If the client of the DropdownButton changes focus in response to the "select" event that closes it, leave focus in that new location. Only restore focus to where it was before the dropdown was opened if no one has touched the focus while it's closing.

You can test the case where it is supposed to restore focus by commenting out the body of CSSInlineEditor._onDropdownSelect() -- choosing an item from the dropdown should restore focus to the original editor in that case.

@njx, up to you if you think this should go into Sprint 38 or not.

…) - If

the client of the DropdownButton changes focus in respond to the "select"
event that closes it, leave focus in that new location. Only restore focus
to where it was before dropdown closed if no one has touched the focus while
closing.
@njx
Copy link
Copy Markdown

njx commented Apr 5, 2014

I don't think this needs to be in Sprint 38.

@njx
Copy link
Copy Markdown

njx commented Apr 5, 2014

...although it seems pretty harmless :) Let me look at it.

@njx
Copy link
Copy Markdown

njx commented Apr 5, 2014

LGTM.

njx pushed a commit that referenced this pull request Apr 5, 2014
Fix bug #7402 (Focus not set to inline editor after creating new rule)
@njx njx merged commit bf41182 into master Apr 5, 2014
@njx njx deleted the pflynn/fix-dropdown-focus-restore branch April 5, 2014 00:11
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.

2 participants