mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 06:22:35 +08:00
Geomap: Fix tooltip display option (#55956)
This commit is contained in:
@ -81,7 +81,8 @@ export const getAllOptionEditors = () => {
|
|||||||
name: 'Boolean',
|
name: 'Boolean',
|
||||||
description: 'Allows boolean values input',
|
description: 'Allows boolean values input',
|
||||||
editor(props) {
|
editor(props) {
|
||||||
return <Switch {...props} onChange={(e) => props.onChange(e.currentTarget.checked)} />;
|
const { id, ...rest } = props; // Remove id from properties passed into switch
|
||||||
|
return <Switch {...rest} onChange={(e) => props.onChange(e.currentTarget.checked)} />;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user