diff --git a/packages/grafana-ui/src/components/Input/Input.tsx b/packages/grafana-ui/src/components/Input/Input.tsx index b9b4e186ef2..b75a8c17760 100644 --- a/packages/grafana-ui/src/components/Input/Input.tsx +++ b/packages/grafana-ui/src/components/Input/Input.tsx @@ -72,7 +72,7 @@ export class Input extends PureComponent { const inputElementProps = this.populateEventPropsWithStatus(restProps, validationEvents); return ( -
+
{error && !hideErrorMessage && {error}}
diff --git a/packages/grafana-ui/src/components/Input/__snapshots__/Input.test.tsx.snap b/packages/grafana-ui/src/components/Input/__snapshots__/Input.test.tsx.snap index a79fc828de6..453e9cb59cf 100644 --- a/packages/grafana-ui/src/components/Input/__snapshots__/Input.test.tsx.snap +++ b/packages/grafana-ui/src/components/Input/__snapshots__/Input.test.tsx.snap @@ -1,7 +1,13 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Input renders correctly 1`] = ` -
+
diff --git a/packages/grafana-ui/src/components/ThresholdsEditor/__snapshots__/ThresholdsEditor.test.tsx.snap b/packages/grafana-ui/src/components/ThresholdsEditor/__snapshots__/ThresholdsEditor.test.tsx.snap index 91b2577dec2..bcdf81ed134 100644 --- a/packages/grafana-ui/src/components/ThresholdsEditor/__snapshots__/ThresholdsEditor.test.tsx.snap +++ b/packages/grafana-ui/src/components/ThresholdsEditor/__snapshots__/ThresholdsEditor.test.tsx.snap @@ -467,7 +467,13 @@ exports[`Render should render with base threshold 1`] = ` type="text" value="Base" > -
+
) => { + this.setState({ value: event.currentTarget.value }); + }; - handleBlur(event) { - this.props.onChange(event.target.value, event.target.value); - } + onBlur = (event: React.FormEvent) => { + this.props.onChange(event.currentTarget.value, event.currentTarget.value); + }; render() { return ( @@ -24,8 +24,8 @@ export default class DefaultVariableQueryEditor extends PureComponent diff --git a/public/app/plugins/datasource/stackdriver/components/__snapshots__/QueryEditor.test.tsx.snap b/public/app/plugins/datasource/stackdriver/components/__snapshots__/QueryEditor.test.tsx.snap index 9d573dc6365..942f45f4116 100644 --- a/public/app/plugins/datasource/stackdriver/components/__snapshots__/QueryEditor.test.tsx.snap +++ b/public/app/plugins/datasource/stackdriver/components/__snapshots__/QueryEditor.test.tsx.snap @@ -398,7 +398,13 @@ Array [ > Alias By -
+
Project -
+