Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

[SourceTree] Don't blur when tree is no longer focused - #6488

Merged
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
darkwing:focus-issues
Jun 19, 2018
Merged

[SourceTree] Don't blur when tree is no longer focused#6488
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
darkwing:focus-issues

Conversation

@darkwing

@darkwing darkwing commented Jun 7, 2018

Copy link
Copy Markdown
Contributor

One thing that bugs me is when I click an item in the source tree and then navigate over to the editor, the focused source's highlight disappears. IMO it shouldn't -- the focused file should always be highlighted in the tree.

@darkwing
darkwing requested a review from nchevobbe June 12, 2018 23:28
@jasonLaster jasonLaster changed the title Don't blur when tree is no longer focused [SourceTree] Don't blur when tree is no longer focused Jun 18, 2018
@jasonLaster

Copy link
Copy Markdown
Contributor

Nice

@jasonLaster
jasonLaster merged commit a30d203 into firefox-devtools:master Jun 19, 2018
style: PropTypes.object
style: PropTypes.object,
// Prevents blur when Tree loses focus
preventBlur: PropTypes.bool

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe add a default prop value for this? You're just checking the negation so not having one should be fine but it's good to have a default.

@wldcordeiro wldcordeiro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looking great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants