-
Notifications
You must be signed in to change notification settings - Fork 11
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
Active menu button is not highlighted #6
Comments
Hey @fsmosca, thanks for opening the bug report! I will take a look at this as soon as possible. |
Just an update, I was able to reproduce the bug with the following code: import streamlit as st
from streamlit_navigation_bar import st_navbar
page = st_navbar(["Home", "Chat"])
st.write(page)
if page == "Chat":
prompt = st.chat_input("Say something") But I'm still working on the solution. |
Hi, I have the exact same issue, and I can confirm that is the chat_input element to be the source of the problem. Has someone found any kind of solution yet? In addition to that, I have to report that this could be strictly related with "Extra rerun on page switch", in fact if you try to debug the simple code you reported the page change is called twice. The first time the new page is temporarily set to active correctly, but as soon as you resume the breakpoint the issue reported here happens. Thank you |
I am having the same problem and I also think the problem is any type of chat_input on the page. I really liked this navigation bar code but its almost impossible to use it in a meaningful way because it is not reliable for any page which includes chat_input. |
Checklist
Summary
The first time the chat menu button is selected, it is not highlighted as active.
Reproducible code example
Steps to reproduce
Expected behavior
If chat is selected is should highlight the chat menu button as active.
Current behavior
No response
Is this a regression?
Debug info
Additional information
No response
The text was updated successfully, but these errors were encountered: