@gitlab/ui 137.2.6 → 137.2.7
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.
|
@@ -428,10 +428,10 @@ var script = {
|
|
|
428
428
|
});
|
|
429
429
|
},
|
|
430
430
|
handleBlur(e) {
|
|
431
|
-
var _e$relatedTarget;
|
|
431
|
+
var _e$relatedTarget, _e$relatedTarget$clas;
|
|
432
432
|
// Keep focus on input when blur event is on same element
|
|
433
433
|
// (e.g. scrollbar in filtered search suggestions list)
|
|
434
|
-
if ((_e$relatedTarget = e.relatedTarget) !== null && _e$relatedTarget !== void 0 && _e$relatedTarget.classList.contains(FILTERED_SEARCH_SUGGESTIONS_CLASS)) {
|
|
434
|
+
if ((_e$relatedTarget = e.relatedTarget) !== null && _e$relatedTarget !== void 0 && (_e$relatedTarget$clas = _e$relatedTarget.classList) !== null && _e$relatedTarget$clas !== void 0 && _e$relatedTarget$clas.contains(FILTERED_SEARCH_SUGGESTIONS_CLASS)) {
|
|
435
435
|
var _this$$refs$input;
|
|
436
436
|
(_this$$refs$input = this.$refs.input) === null || _this$$refs$input === void 0 ? void 0 : _this$$refs$input.focus();
|
|
437
437
|
return;
|
package/package.json
CHANGED
|
@@ -445,7 +445,7 @@ export default {
|
|
|
445
445
|
handleBlur(e) {
|
|
446
446
|
// Keep focus on input when blur event is on same element
|
|
447
447
|
// (e.g. scrollbar in filtered search suggestions list)
|
|
448
|
-
if (e.relatedTarget?.classList
|
|
448
|
+
if (e.relatedTarget?.classList?.contains(FILTERED_SEARCH_SUGGESTIONS_CLASS)) {
|
|
449
449
|
this.$refs.input?.focus();
|
|
450
450
|
return;
|
|
451
451
|
}
|