PopupView doesn't show duplicate names

I’m drawing a list view that lets me select between drawing some different items. The formatListItemCallback is this:

formatListItemCallback:      ve => ((SerializedProperty) ve.userData).FindPropertyRelative("name").stringValue

But if several items have the same name value, they don’t get different entries:

Debug View:

The dropdown does this:
6101076--663483--upload_2020-7-17_16-0-20.png

From looking briefly through the decompiler, it looks like you’re using a GenericMenu to show the popup. GenericMenu has a bool property “allowDuplicateNames”, which defaults to false.

Is it intentional that you’re not setting it true? Any chance you could either do that, or at least give us the ability to set the value on PopupField?

Ya, this is something we just missed. I’ve added internal tracking to get this fixed. Thanks for reporting.

In the meantime, you can try inheriting from PopupField and overriding the formatListItemCallback callback property where you can set the string label for each option.