MobilePopupMenu.SelectionChanged returns previous popup value!

Add a MobilePopupMenu and a MobileTextField to a Screen. Add some default values into the MobilePopupMenu. Add a MobilePopupMenu.SelectionChanged Event that places the SelectedRowText into the MobileTextField ie
TextField1.Text = PopupMenu1.SelectedRowText

Run. As you choose items from the MobilePopupMenu, it doesn’t add to the text field the popupmenu item you just chose, but the previously chosen item.

Am I using it wrong?!

https://tracker.xojo.com/xojoinc/xojo/-/issues/81787

You need to use the Item parameter ie
TextField1.Text = item.Text

Just to clarify, “Item” is the received MobileMenuItem parameter received in the own SelectedChanged event on the MobilePopupMenu control. :+1:

So this means the behaviour is different than on desktop, where the control has already the same value as the passed parameter.

Right. Looking to fix that now, so they are equivalent.