I am using the drop button of bootstrap and it works ok when clicking on it, but when I want to disable it by click outside using the
autoClose='outside'
it does not work. When I click my hamburger menu, the menu drops as expected but when I want to disable it by clicking outside it does not. This is how my code looks like
<Dropdown onClick={preventa} autoClose='outside' className='drop'>
<Dropdown.Toggle id="dropdown-basic" >
<a href="/" ><GiHamburgerMenu size={40} color="#bbff00" className='hamburger' /></a>
</Dropdown.Toggle>
<Dropdown.Menu>
<Dropdown.Item href="#/action-1"><NavItems /></Dropdown.Item>
</Dropdown.Menu>
</Dropdown>
Where could I be going wrong