Skip to content

Commit 52be37c

Browse files
authored
Merge branch 'master' into animated-fetchDOMNode
2 parents 2c9d2ca + cfd5d9f commit 52be37c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+569
-492
lines changed

.changeset/selfish-dots-look.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'react-select': patch
3+
---
4+
5+
The following improvements have been made for screen reader users:
6+
7+
- NVDA now announces the context text when initially focused
8+
- Selected option/s (single and multi) are now announced when initially focused
9+
- VoiceOver now announces the context text when re-focusing
10+
- The clear action is now announced
11+
- Placeholder text is now announced
12+
- Mobile VoiceOver is now able to remove selected multi options

.changeset/tame-suits-lick.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'react-select': patch
3+
'@react-select/docs': patch
4+
---
5+
6+
The Option generic is no longer required to extend the OptionBase type

docs/PropTypes/Select.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Component } from 'react';
22

33
import { Props, defaultProps } from 'react-select/src/Select';
4-
import { GroupBase, OptionBase } from 'react-select';
4+
import { GroupBase } from 'react-select';
55

66
export default class Select extends Component<
7-
Props<OptionBase, boolean, GroupBase<OptionBase>>
7+
Props<unknown, boolean, GroupBase<unknown>>
88
> {
99
defaultProps = defaultProps;
1010
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Component } from 'react';
2-
import { GroupBase, ClearIndicatorProps, OptionBase } from 'react-select';
2+
import { GroupBase, ClearIndicatorProps } from 'react-select';
33

44
export default class ClearIndicator<
5-
Option extends OptionBase,
5+
Option,
66
IsMulti extends boolean,
77
Group extends GroupBase<Option>
88
> extends Component<ClearIndicatorProps<Option, IsMulti, Group>> {}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Component } from 'react';
2-
import { ControlProps, GroupBase, OptionBase } from 'react-select';
2+
import { ControlProps, GroupBase } from 'react-select';
33

44
export default class Control<
5-
Option extends OptionBase,
5+
Option,
66
IsMulti extends boolean,
77
Group extends GroupBase<Option>
88
> extends Component<ControlProps<Option, IsMulti, Group>> {}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Component } from 'react';
2-
import { GroupBase, DropdownIndicatorProps, OptionBase } from 'react-select';
2+
import { GroupBase, DropdownIndicatorProps } from 'react-select';
33

44
export default class DropdownIndicator<
5-
Option extends OptionBase,
5+
Option,
66
IsMulti extends boolean,
77
Group extends GroupBase<Option>
88
> extends Component<DropdownIndicatorProps<Option, IsMulti, Group>> {}

docs/PropTypes/components/Group.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Component } from 'react';
2-
import { GroupBase, GroupProps, OptionBase } from 'react-select';
2+
import { GroupBase, GroupProps } from 'react-select';
33

44
export default class Group<
5-
Option extends OptionBase,
5+
Option,
66
IsMulti extends boolean,
77
Group extends GroupBase<Option>
88
> extends Component<GroupProps<Option, IsMulti, Group>> {}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Component } from 'react';
2-
import { GroupBase, IndicatorsContainerProps, OptionBase } from 'react-select';
2+
import { GroupBase, IndicatorsContainerProps } from 'react-select';
33

44
export default class IndicatorsContainer<
5-
Option extends OptionBase,
5+
Option,
66
IsMulti extends boolean,
77
Group extends GroupBase<Option>
88
> extends Component<IndicatorsContainerProps<Option, IsMulti, Group>> {}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Component } from 'react';
2-
import { DropdownIndicatorProps, GroupBase, OptionBase } from 'react-select';
2+
import { DropdownIndicatorProps, GroupBase } from 'react-select';
33

44
export default class DropdownIndicator<
5-
Option extends OptionBase,
5+
Option,
66
IsMulti extends boolean,
77
Group extends GroupBase<Option>
88
> extends Component<DropdownIndicatorProps<Option, IsMulti, Group>> {}

docs/PropTypes/components/Input.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Component } from 'react';
2-
import { GroupBase, InputProps, OptionBase } from 'react-select';
2+
import { GroupBase, InputProps } from 'react-select';
33

44
export default class Input<
5-
Option extends OptionBase,
5+
Option,
66
IsMulti extends boolean,
77
Group extends GroupBase<Option>
88
> extends Component<InputProps<Option, IsMulti, Group>> {}

0 commit comments

Comments
 (0)