I want to move my top.search to the menu that's why I added below the line in my default.xml file

<move element="top.search" destination="catalog.topnav" />

After doing that tap cart displayed in Menu section but I am getting below JS error that's why it is not working

menu.js:255 Uncaught TypeError: Cannot read property 'closest' of null at $..._keydown (menu.js:255) at $..._keydown (jquery-ui.js:402) at HTMLUListElement.handlerProxy (jquery-ui.js:703) at HTMLUListElement.dispatch (jquery.js:5226) at HTMLUListElement.elemData.handle (jquery.js:4878)

Please let me know if anyone faced this issue or if anyone has this solution.

  • which version of magento 2 you are using? – Dhiren Vasoya Jan 11 at 7:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.