Skip to content

Commit 4c71654

Browse files
committed
✨ 9.1.5
1 parent dcb6397 commit 4c71654

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ src/*.js
3333
src/*.map
3434
.prettierrc
3535
jest.config.js
36-
tsconfig.json
3736
tslint.json
3837
tsconfig.test.json
3938
.eslintrc.js

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-select",
3-
"version": "9.1.4",
3+
"version": "9.1.5",
44
"description": "React Select",
55
"keywords": [
66
"react",

src/DropdownMenu.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ export default class DropdownMenu extends React.Component<Partial<IDropdownMenuP
5353
firstActiveValue: PropTypes.string,
5454
menuItemSelectedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
5555
};
56-
public rafInstance: {
57-
cancel: () => void;
58-
} = { cancel: () => null };
56+
public rafInstance: number | null = null;
5957
public lastInputValue: string | string[] | undefined;
6058
public saveMenuRef: any;
6159
public menuRef: any;
@@ -94,8 +92,8 @@ export default class DropdownMenu extends React.Component<Partial<IDropdownMenuP
9492
}
9593

9694
public componentWillUnmount() {
97-
if (this.rafInstance && this.rafInstance.cancel) {
98-
this.rafInstance.cancel();
95+
if (this.rafInstance) {
96+
raf.cancel(this.rafInstance);
9997
}
10098
}
10199

src/Select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ class Select extends React.Component<Partial<ISelectProps>, ISelectState> {
614614
};
615615

616616
public getOptionInfoBySingleValue = (value: valueType, optionsInfo?: any) => {
617-
let info;
617+
let info: any;
618618
optionsInfo = optionsInfo || this.state.optionsInfo;
619619
if (optionsInfo[getMapKey(value)]) {
620620
info = optionsInfo[getMapKey(value)];

0 commit comments

Comments
 (0)