Hello @blaz_p
magento 2 intilize js using data-mage-init
if you see quick search input type
<input id="search"
data-mage-init='{"quickSearch":{
"formSelector":"#search_mini_form",
"url":"http://magento2-demo.nexcess.net/search/ajax/suggest/",
"destinationSelector":"#search_autocomplete"}
}'
using
data-mage-init
it is calling
var config = {
map: {
'*': {
quickSearch: 'Magento_Search/form-mini'
}
}
};
based on requirejs-config.js
so you need to remove
data-mage-init='{"quickSearch":{
"formSelector":"#search_mini_form",
"url":"http://magento2-demo.nexcess.net/search/ajax/suggest/",
"destinationSelector":"#search_autocomplete"}
}'
Hope it will help you.
if work then mark as solution.
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer