picker icon indicating copy to clipboard operation
picker copied to clipboard

Expose event for when a new item is in focus?

Open foxtree opened this issue 3 years ago • 1 comments

If it's not the case already, is there any way expose an event for when a new item comes into focus, on iOS?

(Or, can onValueChange be triggered?)

  • It seems that when an array of Picker.Item elements is updated, onValueChange is not triggered.

  • onValueChange only seems to fire when the Picker is manually adjusted via user interaction.

The current behavior causes the Picker selectedValue to be inconsistent with what is visually highlighted.

The issue occurs with the EndpointPicker, in the following open-source git repo: https://github.com/sync-for-science/discovery-mobile-ui/

foxtree avatar Mar 21 '22 13:03 foxtree

The current behavior actually seems like a bug:

I would expect that whatever is focused/highlighted in the Picker should always be aligned with the Picker selectedValue.

foxtree avatar Mar 21 '22 13:03 foxtree