Hi, I have purchased the Metronic Version and found that the search is not working.
under the inspect element I found that the following errors was given:
TypeError: searchObject.on is not a function. (In 'searchObject.on('kt.search.process', processs)', 'searchObject.on' is undefined)
init -- script.bundle.js:7549
anonymous function -- script.bundle.js:7566
don't know what's wrong and how do I solve this?
I haven't edited any of the bundle.js files
Hi,
Could you please provide more info? What is your Metronic version and which demo you are using ?
To customize the search Javascript code you will need to edit it in the source folder core/html/src/js/layout/search.js
and then recompile your assets folder with Gulp or Webpack.
Do not directly edit it inside the assets folder.
Please note that the build tools are required only in the development environment just to compile the assets when the source folder files are modified. In the hosting/server deployment you will only need the compile assets, no need to install the build tools dependencies there.
Regards.
I did no modification to the search.js
Using version 15 and demo 1
Hi,
Can you please try to download the latest v8.1.6 update and retry?
Regards.