Optional callback invoked after a different index is selected or cleared.
The initially selected index, or null for no initial selection.
null