Javascript Onsubmit Not Working Inside React Bootstrap Nav Dropdown

Javascript Onsubmit Not Working Inside React Bootstrap Nav Dropdown