@jetbrains/ring-ui 5.0.117 → 5.0.119

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.
@@ -314,7 +314,7 @@ export default class QueryAssist extends Component {
314
314
  this.immediateState.selection.startOffset !== undefined) {
315
315
  this.caret?.setPosition(this.immediateState.selection);
316
316
  }
317
- else if (!this.immediateState.selection || params.forceSetCaret) {
317
+ else if (this.immediateState.selection === undefined || params.forceSetCaret) {
318
318
  this.caret?.setPosition(-1);
319
319
  }
320
320
  }
@@ -193,7 +193,7 @@ class QueryAssist extends Component {
193
193
  _this.scrollInput();
194
194
  } else if (_this.immediateState.selection && typeof _this.immediateState.selection === 'object' && _this.immediateState.selection.startOffset !== undefined) {
195
195
  _this.caret?.setPosition(_this.immediateState.selection);
196
- } else if (!_this.immediateState.selection || params.forceSetCaret) {
196
+ } else if (_this.immediateState.selection === undefined || params.forceSetCaret) {
197
197
  _this.caret?.setPosition(-1);
198
198
  }
199
199
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "5.0.117",
3
+ "version": "5.0.119",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -157,7 +157,7 @@
157
157
  "react-dom": "^18.2.0",
158
158
  "react-test-renderer": "^18.2.0",
159
159
  "regenerator-runtime": "^0.13.11",
160
- "rimraf": "^4.2.0",
160
+ "rimraf": "^4.3.0",
161
161
  "rollup": "^3.18.0",
162
162
  "rollup-plugin-clear": "^2.0.7",
163
163
  "rollup-plugin-styles": "^4.0.0",