@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.
@@ -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: this.props.data,
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 = this.state.showPopup
796
- ? {
797
- 'aria-owns': this.listId,
798
- 'aria-activedescendant': activeItemId,
799
- 'aria-label': this.props.label ?? undefined,
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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "7.0.42",
3
+ "version": "7.0.43",
4
4
  "description": "JetBrains UI library",
5
5
  "author": {
6
6
  "name": "JetBrains"