Hello,
I'am using a theme inheriting from luma theme and I already displayed the search bar on mobile by modifying the less file. But the click on the search icon doesn't fire the search function. I think that there is a javascript which display or hide the search when the icon is clicked, how can I disable or delete this please ?
Regards,
Solved! Go to Solution.
Hi @Yohannento
Search functionality come from form-mini.js.
vendor/magento/module-search/view/frontend/web/js/form-mini.js
Please check with under generated folder also, js is generated or not after run commands.
pub/static/frontend/Magento/luma/en_US/Magento_Search/js/form-mini.js
Below funciton used for show and hide search option within js. Please try to check with this function also.
this.searchLabel.on('click', function (e) { console.log("testing bhanu"); }.bind(this));
It will help you to check issue.
Hi @Yohannento
Search functionality come from form-mini.js.
vendor/magento/module-search/view/frontend/web/js/form-mini.js
Please check with under generated folder also, js is generated or not after run commands.
pub/static/frontend/Magento/luma/en_US/Magento_Search/js/form-mini.js
Below funciton used for show and hide search option within js. Please try to check with this function also.
this.searchLabel.on('click', function (e) { console.log("testing bhanu"); }.bind(this));
It will help you to check issue.
Many thanks, for your help, I disabled the functionnality in the JS file.
Regards,
Hi @Yohannento can you please share the changes in this form-mini.js