I've currently got the following phtml file in my theme:
Vender/Theme/Magento_Search/templates/form.mini.phtml
and the following js file inside of my theme as well:
Vender/Theme/Magento_Search/web/form-mini.js
I've done some changes to the form-mini.js trying to show and hide the search on a desktop site as well as the mobile side.
mediaCheck({
//media: '(max-width: 768px)',
entry: function () {
this.isExpandable = true;
}.bind(this),
exit: function () {
this.isExpandable = false;
this.element.removeAttr('aria-expanded');
}.bind(this)
});
So i commented out the media query to stop the script running on anything less than 768px but, nothing. On clicking the label the aria-expanded still doesn't toggle.
This is my first time looking at the search functionality, any help would be awesome.
Thanks