app-generator / django-datta-able-pro

Django Dashboard - Datta Able PRO | AppSeed
https://appseed.us/product/datta-able-pro/django/
Other
3 stars 2 forks source link

loader-track #7

Closed Eric-Simon-Lemon closed 11 months ago

Eric-Simon-Lemon commented 11 months ago

Hi ! I have some troubles with the loader-track at the top of the pages :

How Am I supposed to make that component work properly even with some changes in the included html files ?

Note : It only happened with navigation.html so far, but I can't say if other files would trigger the same problem. My web dev skill level being what it is, it's a bit hard for me to track what's happening !

Thank you for you help, and have a nice day !

app-generator commented 11 months ago

Noted @Eric-Simon-Lemon

A developer will take a look.

TY!

Eric-Simon-Lemon commented 11 months ago

Same thing happens if I remove the whole navigation include in my base.html image

image

mominur-helios commented 11 months ago

Hello @Eric-Simon-Lemon,

If you inspect the console in your browser then you will notice the error.

In your case, there are two css class in the navigation form input field that are used in javascript search-btn and search-close. But when you remove the search input field from the navigation then those two css classes are not found by javascript and thrown an error. That's why the loader is keep moving.

Solution:

Thank you

Eric-Simon-Lemon commented 11 months ago

Yes found it (in static/assets/js/pcoded.js for those wondering) Thank you and have a nice day !