We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30aa52a commit c25c249Copy full SHA for c25c249
src/index.js
@@ -126,7 +126,12 @@ export default class Trigger extends React.Component {
126
127
if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) {
128
this.clickOutsideHandler = listen(currentDocument,
129
- 'mousedown', this.onDocumentClick);
+ 'mousedown', (e) => {
130
+ //修复在Edge下如果点击Trigger并由上层组件隐藏Popup时,导致mouseup无法触发从而导致文字选择的BUG...
131
+ //不在Trigger里修复,这部分需要由上层组件通过setTimeout方式延迟隐藏的方式来规避
132
+ //e.preventDefault();
133
+ this.onDocumentClick(e);
134
+ });
135
}
136
137
if (!this.touchOutsideHandler && isMobile) {
0 commit comments