I have an select menu with arrow icon next to it. I want to catch the click event of the sibling icon element to open the options of the dropdown.
import React from 'react';
const DropDown = (props) => {
const options = props.options.map((option) => (
<option key={option.value} value={option.value}>
{option.displayValue}
</option>
));
return (
<>
<select>{options}</select>
<box-icon name="chevron-down"></box-icon>
</>
);
};
export default DropDown;