Xojo2025R1: WebPopupMenu and SelectedRowIndex

I have noticed a problem with the SelectedRowIndex and WebPopupMenu when loading text row from WebPopupMenu control that contains apostrophe. This test in SelectionChanged event of the WebPopupMenu control:

If Me.SelectedRowIndex >= 0 Then
// do something
End If

is not working. However, when selecting different text row that DOES NOT have the apostrophe the above test works just fine. (The purpose of that is to preload entry field with text value from the WebPopupMenu for the user).

I don’t have the working demo for this yet but maybe someone has already noticed this as well?

I haven’t and I was not able to create a demo from your information. Sorry.

I also just created a short test, seems to be working as I would expect (macOS 15.4, Safari 18.4:

How are you setting the rows of the WebPopupMenu?
Can you provide a demo?

1 Like

Well, this app is using custom classes ex: DataPopup which has WebPopupMenu as a super class is used then as super class for the actual drop down list boxes aka popup menus. So the problem may be in the underlying super class DataPopup. If that is the case then I should be able to track it down and fix.
Thanks for checking.

1 Like

It turns out that the WebPopupMenu has nothing to do with this issue, it is the underlying superclass using custom field class that is handling apostrophe that was causing the issue.