Przeglądaj źródła

fix: fix datepicker autofocus

代强 2 lat temu
rodzic
commit
df3925eb5c
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      packages/semi-ui/datePicker/dateInput.tsx

+ 2 - 2
packages/semi-ui/datePicker/dateInput.tsx

@@ -281,7 +281,7 @@ export default class DateInput extends BaseComponent<DateInputProps, {}> {
                         onChange={(rangeStartValue, e) => this.handleRangeInputChange(rangeStartValue, rangeEnd, e)}
                         onEnterPress={e => this.handleRangeInputEnterPress(e, rangeStart, rangeEnd)}
                         onFocus={e => this.handleRangeInputFocus(e as any, 'rangeStart')}
-                        autofocus={autofocus} // autofocus moved to range start
+                        autoFocus={autofocus} // autofocus moved to range start
                         ref={rangeInputStartRef}
                     />
                 </div>
@@ -462,7 +462,7 @@ export default class DateInput extends BaseComponent<DateInputProps, {}> {
                 value={text}
                 validateStatus={validateStatus}
                 prefix={prefix}
-                autofocus={autofocus}
+                autoFocus={autofocus}
                 size={size}
                 onBlur={onBlur as any}
                 onFocus={onFocus as any}