@jetbrains/ring-ui 4.1.13 → 4.1.14

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.
@@ -649,8 +649,10 @@ export default class Select extends Component {
649
649
  });
650
650
 
651
651
  if (tryFocusAnchor) {
652
- const restoreFocusNode = this.props.targetElement ||
652
+ const focusableSelectExists = this.node &&
653
653
  this.node.querySelector('[data-test~=ring-select__focus]');
654
+ const restoreFocusNode = this.props.targetElement || focusableSelectExists;
655
+
654
656
  if (restoreFocusNode) {
655
657
  restoreFocusNode.focus();
656
658
  }
@@ -885,7 +885,8 @@ class Select extends Component {
885
885
  });
886
886
 
887
887
  if (tryFocusAnchor) {
888
- const restoreFocusNode = this.props.targetElement || this.node.querySelector('[data-test~=ring-select__focus]');
888
+ const focusableSelectExists = this.node && this.node.querySelector('[data-test~=ring-select__focus]');
889
+ const restoreFocusNode = this.props.targetElement || focusableSelectExists;
889
890
 
890
891
  if (restoreFocusNode) {
891
892
  restoreFocusNode.focus();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "4.1.13",
3
+ "version": "4.1.14",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -77,17 +77,17 @@
77
77
  "@rollup/plugin-replace": "^3.0.1",
78
78
  "@storybook/addon-a11y": "6.4.14",
79
79
  "@storybook/addon-docs": "6.4.14",
80
- "@storybook/addon-essentials": "6.4.13",
80
+ "@storybook/addon-essentials": "6.4.15",
81
81
  "@storybook/addon-storyshots": "6.4.3",
82
82
  "@storybook/addon-storyshots-puppeteer": "6.4.3",
83
83
  "@storybook/addon-storysource": "6.4.14",
84
- "@storybook/addons": "6.4.14",
85
- "@storybook/builder-webpack5": "6.4.14",
84
+ "@storybook/addons": "6.4.15",
85
+ "@storybook/builder-webpack5": "6.4.15",
86
86
  "@storybook/client-api": "6.4.13",
87
- "@storybook/core": "6.4.14",
87
+ "@storybook/core": "6.4.15",
88
88
  "@storybook/html": "6.4.13",
89
89
  "@storybook/manager-webpack5": "^6.4.14",
90
- "@storybook/source-loader": "6.4.13",
90
+ "@storybook/source-loader": "6.4.14",
91
91
  "@storybook/theming": "6.4.14",
92
92
  "@testing-library/react": "^12.1.2",
93
93
  "@testing-library/user-event": "^13.5.0",
@@ -97,7 +97,7 @@
97
97
  "angular-route": "^1.8.2",
98
98
  "babel-plugin-react-docgen": "^4.2.1",
99
99
  "babel-plugin-require-context-hook": "^1.0.0",
100
- "chai": "^4.3.5",
100
+ "chai": "^4.3.6",
101
101
  "chai-as-promised": "^7.1.1",
102
102
  "chai-dom": "^1.10.0",
103
103
  "chai-enzyme": "1.0.0-beta.1",
@@ -126,7 +126,7 @@
126
126
  "karma-teamcity-reporter": "^2.0.0",
127
127
  "karma-webpack": "^5.0.0",
128
128
  "lerna": "^4.0.0",
129
- "lint-staged": "^12.2.1",
129
+ "lint-staged": "^12.3.2",
130
130
  "merge-options": "^3.0.4",
131
131
  "mocha": "^9.2.0",
132
132
  "pinst": "^2.1.6",
@@ -221,5 +221,5 @@
221
221
  "node": ">=7.4",
222
222
  "npm": ">=6.0.0"
223
223
  },
224
- "gitHead": "b0e406b015bcaf1e48532716d794bd474f4d392d"
224
+ "gitHead": "80ad0b649ab6f416bbbc8c8fa3bba6cf4bb07485"
225
225
  }