mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-13 01:54:52 +08:00
DevTools: do not steal focus from the styles sidebar while editing.
Bug: 917477 Change-Id: Ibf881ccc9577a6aa380c07b613042395567fb39d Reviewed-on: https://chromium-review.googlesource.com/c/1388751 Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Pavel Feldman <pfeldman@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#618645} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: f01e9f40e7d86bb59fe09456d673de7ba19d9c11
This commit is contained in:
committed by
Commit Bot
parent
82dd655278
commit
01243d6ab9
@@ -290,6 +290,8 @@ Elements.ElementsTreeOutline = class extends UI.TreeOutline {
|
||||
* @param {boolean} visible
|
||||
*/
|
||||
setVisible(visible) {
|
||||
if (visible === this._visible)
|
||||
return;
|
||||
this._visible = visible;
|
||||
if (!this._visible) {
|
||||
this._popoverHelper.hidePopover();
|
||||
|
||||
Reference in New Issue
Block a user