Hi,
Please refer to these questions which I answered. They explain how buttons behave and how you can use session state to hold values from widget interactions.
- Text_input inside a button doesn't work - #2 by asehmi
- How to work date input with shortcuts - #2 by asehmi
HTH,
Arvindra