Related to #1975
Update the DropdownMenu component to set the selected item as the active one or Dropdown.Toggle child.
Example code:
export const DropdownMenu: React.FC<DropDownMenuProps> = ({ items, title }) => {
const [activeItem, setActiveItem] = useState({
name: title
})
return (
<Dropdown>
<Dropdown.Toggle bsPrefix={styles.dropdown} id="dropdown-lesson">
// Here is the solution
{activeItem.name || 'None'}
<ChevronRight />
</Dropdown.Toggle>
)
}