Skip to content

Commit

Permalink
refactor(Select): fix types error in demo after Input upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
eternalsky committed May 16, 2024
1 parent 8992e03 commit d5ab3f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/select/__docs__/demo/custom-menu-props/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class App extends React.Component {
state = {
dataSource,
};
inputRef: Input | null;
inputRef: InstanceType<typeof Input> | null;
loadMore = () => {
const ds = this.state.dataSource;
this.setState({
Expand All @@ -40,7 +40,6 @@ class App extends React.Component {
onClick={e => console.log(/onclick/, e)}
onMouseDown={e => {
console.log(/onMouseDown/, e);
//@ts-expect-error 待 Input ts 改造
this.inputRef!.focus();
}}
/>
Expand Down

0 comments on commit d5ab3f8

Please sign in to comment.