Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed May 17, 2024
1 parent 69b7dbc commit 529bac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export interface InputRef {
) => void;
select: () => void;
input: HTMLInputElement | null;
nativeElement: HTMLElement | null;
}

export interface ChangeEventInfo {
Expand Down
1 change: 1 addition & 0 deletions tests/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ describe('Input ref', () => {
const { container } = render(<Input ref={ref} defaultValue="light" />);
const inputEl = container.querySelector('input')!;
expect(ref.current?.input).toBe(inputEl);
expect(ref.current?.nativeElement).toBe(inputEl);
});
});

Expand Down

0 comments on commit 529bac1

Please sign in to comment.