// @flow import * as React from 'react'; import classNames from 'classnames'; import type { SelectOptionValueProp } from './props'; import type { PopperChildrenProps } from '../popper/props'; export const OVERLAY_SCROLLABLE_CLASS = 'bdl-SelectField-overlay--scrollable'; type Props = { children: React.Node, innerRef?: React.Ref, isScrollable?: boolean, multiple?: boolean, selectFieldID: string, selectedValues: Array, } & PopperChildrenProps; class SelectFieldDropdown extends React.Component { componentDidUpdate({ selectedValues: prevSelectedValues }) { const { multiple, scheduleUpdate, selectedValues } = this.props; if (multiple && scheduleUpdate && prevSelectedValues !== selectedValues) { scheduleUpdate(); } } render() { const { children, innerRef, style, placement, isScrollable, multiple, selectFieldID } = this.props; const listboxProps = {}; if (multiple) { listboxProps['aria-multiselectable'] = true; } return (
    event.preventDefault()} {...listboxProps} > {children}
); } } export default React.forwardRef((props: Props, ref) => ( ));