diff --git a/examples/basic.tsx b/examples/basic.tsx
index 85b09944c..7885a2ec1 100644
--- a/examples/basic.tsx
+++ b/examples/basic.tsx
@@ -33,7 +33,7 @@ export default () => {
Value: {value ? value.format('YYYY-MM-DD HH:mm:ss') : 'null'}
-
+
Basic
{...sharedProps} locale={zhCN} />
@@ -121,6 +121,10 @@ export default () => {
Year
{...sharedProps} locale={zhCN} picker="year" />
+
+
Keyboard navigation (Tab key) disabled
+
{...sharedProps} locale={enUS} tabIndex={-1} />
+
);
diff --git a/src/Picker.tsx b/src/Picker.tsx
index e9124224e..4216c58d2 100644
--- a/src/Picker.tsx
+++ b/src/Picker.tsx
@@ -45,6 +45,7 @@ export interface PickerSharedProps
extends React.AriaAttributes {
allowClear?: boolean;
autoFocus?: boolean;
disabled?: boolean;
+ tabIndex?: number;
open?: boolean;
defaultOpen?: boolean;
/** Make input readOnly to avoid popup keyboard in mobile */
@@ -129,6 +130,7 @@ function InnerPicker(props: PickerProps) {
const {
prefixCls = 'rc-picker',
id,
+ tabIndex,
style,
className,
dropdownClassName,
@@ -466,6 +468,7 @@ function InnerPicker(props: PickerProps) {