diff --git a/.gitignore b/.gitignore index 90ae753cd..761c95236 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,5 @@ tsconfig.test.json .dumi/tmp .dumi/tmp-test .dumi/tmp-production -.history \ No newline at end of file +.history +pnpm-lock.yaml \ No newline at end of file diff --git a/docs/examples/controlled.tsx b/docs/examples/controlled.tsx index 34bd7a754..7f8c5b1e3 100644 --- a/docs/examples/controlled.tsx +++ b/docs/examples/controlled.tsx @@ -43,7 +43,7 @@ class Controlled extends React.Component<{}, ControlledState> { console.log('onFocus'); }; - onPopupVisibleChange = (open) => { + onOpenChange = (open) => { this.setState({ open }); }; @@ -68,7 +68,7 @@ class Controlled extends React.Component<{}, ControlledState> { optionLabelProp="children" optionFilterProp="text" onChange={this.onChange} - onPopupVisibleChange={this.onPopupVisibleChange} + onOpenChange={this.onOpenChange} >