Event duplication phenomenon question #5198
-
Hello, I am using tree widget and select box. When you click on a tree node, an input or selectbox appears depending on the value. I am asking this question because this problem occurred while dynamically changing options. Problem:
And change the value of selectbox.
Then click on that node again.
As shown above, Select.Changed occurs twice. Does anyone know or have a solution to this phenomenon? In Node.Selected, the value of set_options and node is substituted to select. And I'm curious about one more thing. I want to skip the first one by giving a flag in Node Selected, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Could you possibly provide a minimal reproducible example to help understand your question? |
Beta Was this translation helpful? Give feedback.
I think the problem might be that the
set_options
method will also select the first valid option as noted in the docs?I've created a quick example below which logs the
Select.Changed
events.Simple example showing set_options