Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')"
error even if I created assets according to your tutorial video about building assets. Do I have to add search.js to html or not? I'm newbie http://usubaliev.com/satis/
</a>Hi,
The issue is due to a missing HTML element with data-kt-search-element="advanced-options-form-show"
attribute. Can you please double-check the HTML code of the header search and add this element by referring to the original HTML templates?
Or you can update the core/html/src/js/layout/search.js
with this version in order to be able to remove unused search icons(preference panel toggle icon, etc).
Then recompile your assets folder with Gulp or Webpack.
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.
Thank you, the problem solved!
Hi ,
Glad to hear that. If you need any further help please let us know.
All the best with your projects!
Regards.