Use Element instead of HTMLElement
This commit is contained in:
parent
35ecaff399
commit
26eaef848b
1 changed files with 5 additions and 5 deletions
|
@ -97,8 +97,8 @@ export default function AccessibleButton({
|
||||||
* onClick: (required) Event handler for button activation. Should be
|
* onClick: (required) Event handler for button activation. Should be
|
||||||
* implemented exactly like a normal onClick handler.
|
* implemented exactly like a normal onClick handler.
|
||||||
*/
|
*/
|
||||||
interface IProps extends React.InputHTMLAttributes<HTMLElement> {
|
interface IProps extends React.InputHTMLAttributes<Element> {
|
||||||
inputRef?: React.Ref<HTMLElement>,
|
inputRef?: React.Ref<Element>,
|
||||||
element?: string;
|
element?: string;
|
||||||
// The kind of button, similar to how Bootstrap works.
|
// The kind of button, similar to how Bootstrap works.
|
||||||
// See available classes for AccessibleButton for options.
|
// See available classes for AccessibleButton for options.
|
||||||
|
@ -109,11 +109,11 @@ interface IProps extends React.InputHTMLAttributes<HTMLElement> {
|
||||||
tabIndex?: number,
|
tabIndex?: number,
|
||||||
disabled?: boolean,
|
disabled?: boolean,
|
||||||
className?: string,
|
className?: string,
|
||||||
onClick(e?: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>): void;
|
onClick(e?: React.MouseEvent<Element> | React.KeyboardEvent<Element>): void;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface IAccessibleButtonProps extends React.InputHTMLAttributes<HTMLElement> {
|
interface IAccessibleButtonProps extends React.InputHTMLAttributes<Element> {
|
||||||
ref?: React.Ref<HTMLElement>,
|
ref?: React.Ref<Element>,
|
||||||
}
|
}
|
||||||
|
|
||||||
AccessibleButton.defaultProps = {
|
AccessibleButton.defaultProps = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue