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

Search bar doesn't get focus if already open#3153

Merged
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
amitzur:master
Jun 12, 2017
Merged

Search bar doesn't get focus if already open#3153
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
amitzur:master

Conversation

@amitzur

@amitzur amitzur commented Jun 11, 2017

Copy link
Copy Markdown
Contributor

Associated Issue: #3152

Summary of Changes

  • the method toggleSearch was called, which in turn calls selectSearchInput which selects the entire range in the input. But it doesn't focus.
    I just added focus() inside selectSearchInput.

@codecov

codecov Bot commented Jun 11, 2017

Copy link
Copy Markdown

Codecov Report

Merging #3153 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #3153      +/-   ##
=========================================
- Coverage   47.42%   47.4%   -0.02%     
=========================================
  Files          97      97              
  Lines        4013    4014       +1     
  Branches      825     825              
=========================================
  Hits         1903    1903              
- Misses       2110    2111       +1
Impacted Files Coverage Δ
src/components/Editor/SearchBar.js 22.04% <0%> (-0.08%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd8592c...5eeb207. Read the comment docs.

@codehag

codehag commented Jun 12, 2017

Copy link
Copy Markdown
Contributor

Hi! Thanks for the bug report and the PR.

I tried to replicate the bug behavior you described, but I wasn't able to. Can you give me a scenario to follow to confirm the fix? Just the series of steps that you took to discover the bug. These are the steps I followed:

  • open the debugger
  • press cmd-f and start typing a valid search string
  • unfocus the search field
  • press cmd-f again and start typing

On both master and this branch this works, so I am probably missing something. Thanks!

@jasonLaster jasonLaster merged commit e72aa1a into firefox-devtools:master Jun 12, 2017
@jasonLaster

Copy link
Copy Markdown
Contributor

Thanks @amitzur!

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.

3 participants