mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-16 00:45:18 +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(
|
const setRefs = React.useCallback(
|
||||||
(node: HTMLInputElement | null) => {
|
(node: HTMLInputElement | null) => {
|
||||||
|
// @ts-ignore
|
||||||
inputRef.current = node;
|
inputRef.current = node;
|
||||||
if (typeof ref === "function") {
|
if (typeof ref === "function") {
|
||||||
ref(node);
|
ref(node);
|
||||||
|
|||||||
Reference in New Issue
Block a user