File tree Expand file tree Collapse file tree
packages/components/src/spectrum/picker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,11 +21,15 @@ export type PickerProps = {
2121 defaultSelectedKey ?: PickerItemKey ;
2222 /**
2323 * Handler that is called when the selection change.
24- * Note that this is just an alias for `onSelectionChange` for better
25- * consistency with other components.
24+ * Note that under the hood, this is just an alias for Spectrum's
25+ * `onSelectionChange`. We are renaming for better consistency with other
26+ * components.
2627 */
2728 onChange ?: ( key : PickerItemKey ) => void ;
28- /** Handler that is called when the selection changes. */
29+ /**
30+ * Handler that is called when the selection changes.
31+ * @deprecated Use `onChange` instead
32+ */
2933 onSelectionChange ?: ( key : PickerItemKey ) => void ;
3034} /*
3135 * Support remaining SpectrumPickerProps.
You can’t perform that action at this time.
0 commit comments