You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using a state var for the text of a menu trigger, clicking on it does not display the menu content
To Reproduce
Steps to reproduce the behavior:
"""minimal example showing that state-vars in menu-trigger block display of menu-content"""importreflexasrxfromrxconfigimportconfigclassState(rx.State):
text:str="my state-var text"defindex() ->rx.Component:
returnrx.hstack(
rx.menu.root(
rx.menu.trigger(rx.button("my text")),
rx.menu.content(rx.menu.item("my menu content")) # is shown
),
rx.menu.root(
rx.menu.trigger(rx.button(State.text)), # shown, but blocks contentrx.menu.content(rx.menu.item("my menu content")), # not shown
),
)
app=rx.App()
app.add_page(index)
Expected behavior
Clicking on the button [my state-var text] should show the menu content (like it works when clicking on the button [my text]).
Screenshots
Specifics (please complete the following information):
Python Version: 3.12.6
Reflex Version: 0.6.7
OS: Windows 10
Browser (Optional): Firefox
The text was updated successfully, but these errors were encountered:
Describe the bug
When using a state var for the text of a menu trigger, clicking on it does not display the menu content
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Clicking on the button [my state-var text] should show the menu content (like it works when clicking on the button [my text]).
Screenshots
Specifics (please complete the following information):
The text was updated successfully, but these errors were encountered: