mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 11:44:26 -06:00
Merge pull request #15109 from grafana/fix/explore-switches
Propagate event to onChange prop in Switch component
This commit is contained in:
commit
e1dad8488b
@ -14,8 +14,7 @@ export interface Props {
|
||||
export interface State {
|
||||
id: any;
|
||||
}
|
||||
|
||||
export class Switch extends PureComponent<Props, State> {
|
||||
export class Switch extends PureComponent<Props, State> {
|
||||
state = {
|
||||
id: _.uniqueId(),
|
||||
};
|
||||
@ -23,7 +22,7 @@ export class Switch extends PureComponent<Props, State> {
|
||||
internalOnChange = (event: React.FormEvent<HTMLInputElement>) => {
|
||||
event.stopPropagation();
|
||||
|
||||
this.props.onChange();
|
||||
this.props.onChange(event);
|
||||
};
|
||||
|
||||
render() {
|
||||
|
Loading…
Reference in New Issue
Block a user