superdesk-ui-framework 7.0.0-dev2 → 7.0.0-dev3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app-typescript/components/Dropdown.tsx +1 -1
- package/dist/examples.bundle.js +1 -1
- package/dist/storybook/manifests/components.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +1 -1
- package/storybook-static/manifests/components.json +1 -1
- package/storybook-static/project.json +1 -1
|
@@ -215,7 +215,7 @@ export const Dropdown = ({items, header, footer, children, align, onChange, maxH
|
|
|
215
215
|
|
|
216
216
|
return (
|
|
217
217
|
<div className={open ? 'dropdown open' : 'dropdown'}>
|
|
218
|
-
{React.isValidElement(children) ? (
|
|
218
|
+
{React.isValidElement<React.HTMLAttributes<HTMLElement>>(children) ? (
|
|
219
219
|
// The wrapper (not the cloned child) is the popper anchor, so a plain
|
|
220
220
|
// function component can be used as the toggle without forwarding a ref.
|
|
221
221
|
<div ref={setButtonRef}>
|