@jetbrains/ring-ui 4.2.14 → 4.2.15
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.
|
@@ -246,7 +246,7 @@ export default class QueryAssist extends Component {
|
|
|
246
246
|
if (typeof query === 'string' && queryChanged && query !== this.immediateState.query) {
|
|
247
247
|
this.immediateState.query = query;
|
|
248
248
|
|
|
249
|
-
if (
|
|
249
|
+
if (prevProps.autoOpen && query?.length > 0) {
|
|
250
250
|
this.requestData();
|
|
251
251
|
} else if (query) {
|
|
252
252
|
this.requestStyleRanges();
|
|
@@ -468,7 +468,7 @@ export default class QueryAssist extends Component {
|
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
if (this.
|
|
471
|
+
if (this.immediateState.query.length < 1) {
|
|
472
472
|
this.setState({showPopup: false});
|
|
473
473
|
}
|
|
474
474
|
};
|
|
@@ -497,7 +497,7 @@ export default class QueryAssist extends Component {
|
|
|
497
497
|
placeholderEnabled: !query,
|
|
498
498
|
query,
|
|
499
499
|
suggestions,
|
|
500
|
-
showPopup: !!suggestions.length &&
|
|
500
|
+
showPopup: !!suggestions.length && !afterCompletion
|
|
501
501
|
};
|
|
502
502
|
|
|
503
503
|
this.immediateState.suggestionsQuery = query;
|
|
@@ -319,7 +319,7 @@ class QueryAssist extends Component {
|
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
if (this.
|
|
322
|
+
if (this.immediateState.query.length < 1) {
|
|
323
323
|
this.setState({
|
|
324
324
|
showPopup: false
|
|
325
325
|
});
|
|
@@ -355,7 +355,7 @@ class QueryAssist extends Component {
|
|
|
355
355
|
placeholderEnabled: !query,
|
|
356
356
|
query,
|
|
357
357
|
suggestions,
|
|
358
|
-
showPopup: !!suggestions.length &&
|
|
358
|
+
showPopup: !!suggestions.length && !afterCompletion
|
|
359
359
|
};
|
|
360
360
|
_this.immediateState.suggestionsQuery = query; // Do not update deep equal styleRanges to simplify shouldComponentUpdate check
|
|
361
361
|
|
|
@@ -618,7 +618,7 @@ class QueryAssist extends Component {
|
|
|
618
618
|
if (typeof query === 'string' && queryChanged && query !== this.immediateState.query) {
|
|
619
619
|
this.immediateState.query = query;
|
|
620
620
|
|
|
621
|
-
if (
|
|
621
|
+
if (prevProps.autoOpen && (query === null || query === void 0 ? void 0 : query.length) > 0) {
|
|
622
622
|
this.requestData();
|
|
623
623
|
} else if (query) {
|
|
624
624
|
this.requestStyleRanges();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.15",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -221,5 +221,5 @@
|
|
|
221
221
|
"node": ">=7.4",
|
|
222
222
|
"npm": ">=6.0.0"
|
|
223
223
|
},
|
|
224
|
-
"gitHead": "
|
|
224
|
+
"gitHead": "c4855e8099f7167c2a4ab2a48844052eaa7dcdf3"
|
|
225
225
|
}
|