bootstrap navbar drop down item not working


I replace yii2 navbar with regular bootstrap html navbar code.

Normally it work just fine.

But if i upload image using form i created by following this guide yii2 upload file, the bootstrap navbar drop down menu item wont work. It wont show the child menu item when i click on the parent menu item.

How to fix this?