Commit 451c9580 by Alex Khomenko Committed by GitHub

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

* Pass the rest of to props to Select

* Remove log
parent ebc9549c
......@@ -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, {
leading: true,
trailing: true,
......@@ -43,6 +49,7 @@ export const DashboardPicker: FC<Props> = ({ onSelected, currentDashboard, size
placeholder="Select dashboard"
noOptionsMessage="No dashboards found"
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