Hi am using bootstrap 4 and designed menu bar with caret. In that i am facing two issues. 

1) when i click the button (eg LAPTOP,MObile) dropdown appears but the caret not changed. when i click the caret dropdown appears and caret changed .

2) once i click the menu dropdown appears the arrow changed but when i click another menu from the same menubar