Cannot open "Search for sources" again
Steps to reproduce:
- Start Nightly (or Dev. Edition)
- Go to any sites (e.g. about:home)
- Open Debugger
- Open "Search for sources" (e.g. click [+] or Ctrl+P)
- Close "Search for sources"
- Open "Search for sources" again
Actual Results: No response. Cannot open "Search for sources" again.
Expected Results: "Search for sources" works after the second times.
I can confirm that we see this error in master branch.
When we try to open SourceSearch after closing it, we see some error in console.
Interestingly, we don't see the error if don't close SourceSearch but instead just switch tab and reopen SourceSearch again.
I'll look into this
@irfanhudda Looked into it and found the issue.
https://github.com/devtools-html/debugger.html/blob/master/src/components/ProjectSearch.js#L89
This is setting the value to null for whatever reason and then when SearchInput tries calling query.trim() it is a non-existent method.
Making that line setState({ inputValue: "" }); fixes this bug.