@jetbrains/ring-ui-built 6.0.54 → 6.0.56
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.
@@ -241,7 +241,10 @@ var Auth = /*#__PURE__*/function () {
|
|
241
241
|
}
|
242
242
|
if (this.config.reloadOnUserChange) {
|
243
243
|
this.addListener(USER_CHANGED_EVENT, function () {
|
244
|
-
|
244
|
+
// Timeout is needed to ensure all other listeners triggered before stopping current page
|
245
|
+
setTimeout(function () {
|
246
|
+
return _this._reloadCurrentPage();
|
247
|
+
});
|
245
248
|
});
|
246
249
|
}
|
247
250
|
this.addListener(LOGOUT_POSTPONED_EVENT, function () {
|
@@ -48,7 +48,7 @@ var Shortcuts = /*#__PURE__*/function () {
|
|
48
48
|
});
|
49
49
|
_defineProperty(this, "_defaultFilter", function (e, element, key) {
|
50
50
|
// if the element or its parents have the class "ring-js-shortcuts" then no need to stop
|
51
|
-
if (element === document || !(element instanceof HTMLElement) || key == null || element.matches(_this.ALLOW_SHORTCUTS_SELECTOR) ||
|
51
|
+
if (element === document || !(element instanceof HTMLElement) || key == null || element.matches(_this.ALLOW_SHORTCUTS_SELECTOR) || (element.dataset.enabledShortcuts != null ? element.dataset.enabledShortcuts.split(',').includes(key) : element.closest(_this.ALLOW_SHORTCUTS_SELECTOR) != null)) {
|
52
52
|
return false;
|
53
53
|
}
|
54
54
|
var elementContentEditableAttribute = element.contentEditable;
|