Commit 1d63f57c by Alex Khomenko Committed by Arve Knudsen

Core: Pass the rest of to props to Select (#22776)

* Pass the rest of to props to Select

* Remove log

(cherry picked from commit 451c9580)
parent e00f393a
...@@ -24,7 +24,13 @@ const getDashboards = (query = '') => { ...@@ -24,7 +24,13 @@ const getDashboards = (query = '') => {
}); });
}; };
export const DashboardPicker: FC<Props> = ({ onSelected, currentDashboard, size = 'md', isClearable = false }) => { export const DashboardPicker: FC<Props> = ({
onSelected,
currentDashboard,
size = 'md',
isClearable = false,
...rest
}) => {
const debouncedSearch = debounce(getDashboards, 300, { const debouncedSearch = debounce(getDashboards, 300, {
leading: true, leading: true,
trailing: true, trailing: true,
...@@ -43,6 +49,7 @@ export const DashboardPicker: FC<Props> = ({ onSelected, currentDashboard, size ...@@ -43,6 +49,7 @@ export const DashboardPicker: FC<Props> = ({ onSelected, currentDashboard, size
placeholder="Select dashboard" placeholder="Select dashboard"
noOptionsMessage="No dashboards found" noOptionsMessage="No dashboards found"
value={currentDashboard} value={currentDashboard}
{...rest}
/> />
); );
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment