mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Minor fix scrollpos when duplicating
This commit is contained in:
parent
a6683dd90e
commit
3cb73e7948
@ -96,7 +96,7 @@ export class QueriesTab extends PureComponent<Props, State> {
|
|||||||
|
|
||||||
onAddQuery = (query?: Partial<DataQuery>) => {
|
onAddQuery = (query?: Partial<DataQuery>) => {
|
||||||
this.props.panel.addQuery(query);
|
this.props.panel.addQuery(query);
|
||||||
this.forceUpdate();
|
this.setState({ scrollTop: this.state.scrollTop + 100000 });
|
||||||
};
|
};
|
||||||
|
|
||||||
onAddQueryClick = () => {
|
onAddQueryClick = () => {
|
||||||
@ -105,8 +105,7 @@ export class QueriesTab extends PureComponent<Props, State> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.props.panel.addQuery();
|
this.onAddQuery();
|
||||||
this.setState({ scrollTop: this.state.scrollTop + 100000 });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
onRemoveQuery = (query: DataQuery) => {
|
onRemoveQuery = (query: DataQuery) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user