Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

None of the panels show on click or hover. #135

Open
jclarksnps opened this issue Jun 7, 2019 · 2 comments
Open

None of the panels show on click or hover. #135

jclarksnps opened this issue Jun 7, 2019 · 2 comments

Comments

@jclarksnps
Copy link

I'm using flask 1.0.2, and have the debug toolbar installed but on hover or click of any of the items in the bar i.e templates, sqlalchemy, nothing happens? Note that the menu is showing that there are 3 queries in the sqlalchemy section, but nothing expands.

@jeffwidman
Copy link
Member

Is this true with the latest release?

I suspect this is actually a javascript conflict issue, are there any errors listed in the browser console?

@ianlintner-wf
Copy link

ianlintner-wf commented May 20, 2020

I had a similar issue but yours could very well be different YMMV. I didn't realize you don't have to call init in your app function. -- I am not using vanilla flask I am using flask-lambda. This only may matter due to the factory app creation.

Javascript is initialized twice causing the click handler in JS to be called 2x which opened and closed the panels immediately after.

I saw the behavior when I had the init call (doh!):

toolbar: DebugToolbarExtension = DebugToolbarExtension(app)
toolbar.init_app(app)

Fixed when I commented it out

toolbar: DebugToolbarExtension = DebugToolbarExtension(app)
'''toolbar.init_app(app)'''

I hope this can help someone else.

Also this project is awesome. Just what I needed. I wanted to developer console for debugging SAML responses when testing endpoints. Very cool❗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants