diff --git a/components/common/DurationInput/index.tsx b/components/common/DurationInput/index.tsx index 91513838..325af102 100644 --- a/components/common/DurationInput/index.tsx +++ b/components/common/DurationInput/index.tsx @@ -14,7 +14,10 @@ interface Props } const DurationInput = React.forwardRef( - function DurationInput({ className, value, onValueChange }, forwardedRef) { + function DurationInput( + { className, value, onValueChange, ...props }, + forwardedRef + ) { // State const [duration, setDuration] = useState('') const [minutesSelected, setMinutesSelected] = useState(false) @@ -191,6 +194,7 @@ const DurationInput = React.forwardRef( onKeyDown={handleKeyDown} placeholder="mm" size={3} + tabIndex={props.tabIndex} /> : ( onKeyDown={handleKeyDown} placeholder="ss" size={2} + tabIndex={props.tabIndex ? props.tabIndex + 1 : undefined} /> )