Use RefCallback type
This commit is contained in:
parent
5c3a518576
commit
27b62d022e
4 changed files with 8 additions and 7 deletions
|
@ -6,11 +6,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|||
Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import React, { RefCallback } from "react";
|
||||
import classnames from "classnames";
|
||||
|
||||
interface IProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
||||
inputRef?: (node: HTMLInputElement | null) => void;
|
||||
inputRef?: RefCallback<HTMLInputElement>;
|
||||
outlined?: boolean;
|
||||
// If true (default), the children will be contained within a <label> element
|
||||
// If false, they'll be in a div. Putting interactive components that have labels
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue