Skip to content

Clicking a Button trigger the Dropdown @on handler. #1885

Answered by vopani
Sivakajan-tech asked this question in Q&A
Discussion options

You must be logged in to vote

This works as expected and the bug is likely in your code depending on what you'd like to achieve.

A button click will submit all components on the page. So in your example, the button click submits the dropdown and its corresponding function is executed when a dropdown value is selected (not None).

Depending on what triggering events you want to capture, you can define several @on functions for different triggers.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mturoci
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Question
2 participants
Converted from issue

This discussion was converted from issue #1884 on March 13, 2023 07:23.