mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-09-14 11:06:15 +05:00
fix(input): add type safety for input reference handling
This commit is contained in:
parent
8f95546535
commit
15b0ca7ab2
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user