Skip to content

Commit

Permalink
fix: patches blueprint's popover (#12213)
Browse files Browse the repository at this point in the history
Co-authored-by: Aishwarya UR <[email protected]>
  • Loading branch information
Aswath K and Aishwarya-U-R authored Mar 31, 2022
1 parent 7f390d0 commit dfa788c
Showing 1 changed file with 13 additions and 0 deletions.
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;

0 comments on commit dfa788c

Please sign in to comment.