From 1d63f57cafd9e25458994efa0ca718cbf3945b19 Mon Sep 17 00:00:00 2001 From: Alex Khomenko Date: Fri, 13 Mar 2020 14:07:15 +0200 Subject: [PATCH] Core: Pass the rest of to props to Select (#22776) * Pass the rest of to props to Select * Remove log (cherry picked from commit 451c95808d48454df14d3673ceab3b61abe0f8ca) --- public/app/core/components/Select/DashboardPicker.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/app/core/components/Select/DashboardPicker.tsx b/public/app/core/components/Select/DashboardPicker.tsx index 918020c7c7a..a70f60490fc 100644 --- a/public/app/core/components/Select/DashboardPicker.tsx +++ b/public/app/core/components/Select/DashboardPicker.tsx @@ -24,7 +24,13 @@ const getDashboards = (query = '') => { }); }; -export const DashboardPicker: FC = ({ onSelected, currentDashboard, size = 'md', isClearable = false }) => { +export const DashboardPicker: FC = ({ + onSelected, + currentDashboard, + size = 'md', + isClearable = false, + ...rest +}) => { const debouncedSearch = debounce(getDashboards, 300, { leading: true, trailing: true, @@ -43,6 +49,7 @@ export const DashboardPicker: FC = ({ onSelected, currentDashboard, size placeholder="Select dashboard" noOptionsMessage="No dashboards found" value={currentDashboard} + {...rest} /> ); };