Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: patches blueprint's popover #12213

Merged
merged 4 commits into from
Mar 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions app/client/patches/@blueprintjs+core+3.36.0.patch
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,16 @@ index 84f03fa..5e5488a 100644
};
EditableText.prototype.renderInput = function (value) {
var _a = this.props, disabled = _a.disabled, maxLength = _a.maxLength, multiline = _a.multiline, type = _a.type, placeholder = _a.placeholder;
diff --git a/node_modules/@blueprintjs/core/lib/esm/components/popover/popover.js b/node_modules/@blueprintjs/core/lib/esm/components/popover/popover.js
index 0a12a2d..0169bf7 100644
--- a/node_modules/@blueprintjs/core/lib/esm/components/popover/popover.js
+++ b/node_modules/@blueprintjs/core/lib/esm/components/popover/popover.js
@@ -169,6 +169,8 @@ var Popover = /** @class */ (function (_super) {
// close the popover if necessary.
if (e.relatedTarget != null && !_this.isElementInPopover(e.relatedTarget)) {
_this.handleMouseLeave(e);
+ } else if(e.relatedTarget === null) {
+ _this.handleMouseLeave(e);
}
}
_this.lostFocusOnSamePage = e.relatedTarget != null;