@jetbrains/ring-ui 7.0.42 → 7.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/select/select.js +8 -10
- package/package.json +1 -1
|
@@ -278,7 +278,7 @@ export default class Select extends Component {
|
|
|
278
278
|
shortcutsEnabled: false,
|
|
279
279
|
popupShortcuts: false,
|
|
280
280
|
showPopup: this.props.showPopup,
|
|
281
|
-
prevData:
|
|
281
|
+
prevData: [],
|
|
282
282
|
prevSelected: null,
|
|
283
283
|
prevMultiple: this.props.multiple,
|
|
284
284
|
multipleMap: {},
|
|
@@ -792,15 +792,13 @@ export default class Select extends Component {
|
|
|
792
792
|
style = getStyle(icons.length);
|
|
793
793
|
iconsNode = _jsx("div", { className: styles.icons, children: icons });
|
|
794
794
|
}
|
|
795
|
-
const ariaProps =
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
'aria-label': this.props.label ?? undefined,
|
|
803
|
-
};
|
|
795
|
+
const ariaProps = {
|
|
796
|
+
role: 'combobox',
|
|
797
|
+
'aria-expanded': this.state.showPopup,
|
|
798
|
+
'aria-controls': this.listId,
|
|
799
|
+
'aria-activedescendant': activeItemId,
|
|
800
|
+
'aria-label': this.props.label ?? this._getPlaceholder() ?? undefined,
|
|
801
|
+
};
|
|
804
802
|
switch (this.props.type) {
|
|
805
803
|
case Type.INPUT_WITHOUT_CONTROLS:
|
|
806
804
|
case Type.INPUT:
|