mirror of
https://github.com/dokploy/dokploy.git
synced 2026-06-14 03:19:49 +00:00
fix(input): add type safety for input reference handling
This commit is contained in:
@@ -34,6 +34,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
||||
|
||||
const setRefs = React.useCallback(
|
||||
(node: HTMLInputElement | null) => {
|
||||
// @ts-ignore
|
||||
inputRef.current = node;
|
||||
if (typeof ref === "function") {
|
||||
ref(node);
|
||||
|
||||
Reference in New Issue
Block a user