Bug 1515736 - [release 111] Clear the watch expression input box on blur (#7467). r=lsmyth
authorJason Laster <jlaster@mozilla.com>
Fri, 21 Dec 2018 11:49:56 -0500
changeset 508829 2f3d11e79be8a6c6bbc6fa3e831f9091c1c2323b
parent 508828 e5f127555df6b45147c73c6c46d3a92884fdd459
child 508830 0da803764ff9a9a27253aa82328b73e0aff2325a
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslsmyth
bugs1515736
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1515736 - [release 111] Clear the watch expression input box on blur (#7467). r=lsmyth
devtools/client/debugger/new/src/components/SecondaryPanes/Expressions.js
--- a/devtools/client/debugger/new/src/components/SecondaryPanes/Expressions.js
+++ b/devtools/client/debugger/new/src/components/SecondaryPanes/Expressions.js
@@ -159,16 +159,17 @@ class Expressions extends Component<Prop
     if (e.key === "Escape") {
       this.clear();
     }
   };
 
   hideInput = () => {
     this.setState({ focused: false });
     this.props.onExpressionAdded();
+    this.props.clearExpressionError();
   };
 
   onFocus = () => {
     this.setState({ focused: true });
   };
 
   onBlur() {
     this.clear();