reflex-dev / reflex

🕸️ Web apps in pure Python 🐍
https://reflex.dev
Apache License 2.0
19.84k stars 1.14k forks source link

When on_click on the rx.button() of rx. tooltip(), the tooltip cannot work #4232

Open NACXA0 opened 2 hours ago

NACXA0 commented 2 hours ago

Describe the bug When on_click on the rx.button() of rx. tooltip(), the tooltip cannot work… Example:

To Reproduce rx.tooltip( rx.button(‘test_tooltip’, on_click=rx.toast.success(‘test’)), content=‘message’ )

However, it is possible to do so rx.tooltip( rx.box(rx.button(‘test_tooltip’, on_click=rx.toast.success(‘test’))), content=‘message’ )

thanks tomg

Screenshots haven't on_click: normal normal_code

all on_click: have_page have_code

add rx.box(): have_box_page have_box_code

Specifics:

linear[bot] commented 1 hour ago

ENG-3991 When on_click on the rx.button() of rx. tooltip(), the tooltip cannot work