wip
This commit is contained in:
@@ -2,7 +2,7 @@ import React, { InputHTMLAttributes, ReactNode } from 'react';
|
||||
|
||||
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
||||
error?: boolean;
|
||||
errorMessage?: string;
|
||||
errorMessage?: string | undefined;
|
||||
}
|
||||
|
||||
export default function Input({
|
||||
|
||||
@@ -70,7 +70,11 @@ export default function Modal({
|
||||
if (focusable.length === 0) return;
|
||||
|
||||
const first = focusable[0];
|
||||
const last = focusable[focusable.length - 1];
|
||||
const last = focusable[focusable.length - 1] ?? first;
|
||||
|
||||
if (!first || !last) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!event.shiftKey && document.activeElement === last) {
|
||||
event.preventDefault();
|
||||
|
||||
@@ -10,7 +10,7 @@ interface RangeFieldProps {
|
||||
step?: number;
|
||||
onChange: (value: number) => void;
|
||||
helperText?: string;
|
||||
error?: string;
|
||||
error?: string | undefined;
|
||||
disabled?: boolean;
|
||||
unitLabel?: string;
|
||||
rangeHint?: string;
|
||||
|
||||
Reference in New Issue
Block a user