Closed eatradish closed 2 years ago
Hi, and thanks for the report!
I think the issue here is that on_submit
is only called when actually "submitting" something (for popup SelectView
, this is indeed when selecting an entry. But setting the selection at first does not "submit" anything.
It seems you want to know the current selection, rather than doing something on submit. To do that, you could query the state of the view in the show_msg
callback.
To query the current state of the view, you could give it a name, then find a view by name. You can check the third tutorial for how to do that.
Describe the bug I tried to write an interface with a SelectView in a ListView with the following code:
I found that in the interface it selects a by default, but this is just an illusion, in fact here cursive doesn't select anything.
Screenshots The screen at the beginning (it looks like a is selected, but it is not):
After pressing the Next button directly:
select a and click "Next":
Environment