Jump to content

[SOLVED] AdminUI menus gone awry


MarkE
 Share

Recommended Posts

The dropdown menus in the AdminUI on my dev machine have suddenly stopped working. Also the submit button is wrong - see below:

As you can see, the drop-down disappears when I try and select from it. It all works OK on the live site and I have done the following:

  • Compared the 'wire' files between the dev and live sites - no corruption or missing files
  • Logged out and back in again
  • Cleared the cache
  • Stopped and restarted Laragon

Obviously, I have some code on my dev site that is not yet in the live site, but I can't see that it should affect the Admin UI. Nevertheless, I have tried disabling any new js files and that doesn't fix it either. I am also using the exact same database on each site.

Version is PW 3.0.190 on Windows 10 / Laragon. Any ideas?

Link to comment
Share on other sites

35 minutes ago, matjazp said:

I had that behavior once, a long time ago, don't remember what the culprit was

Yeah, not the first time for me either. Anyway, I've found the problem now - I'd added a script using

echo "<script src='{$js}'></script>";

. I changed that to 

$this->wire()->config->scripts->append($js);

and all seems good now.

Link to comment
Share on other sites

  • MarkE changed the title to [SOLVED] AdminUI menus gone awry

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...