Skip to content

Commit fc6661e

Browse files
committed
chore: add comment
1 parent 3692ed8 commit fc6661e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Trigger.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ const Trigger = createReactClass({
160160
}
161161
});
162162

163+
// We must listen to `mousedown` or `touchstart`, edge case:
164+
// https://github.com/ant-design/ant-design/issues/5804
165+
// https://github.com/react-component/calendar/issues/250
166+
// https://github.com/react-component/trigger/issues/50
163167
if (state.popupVisible) {
164168
let currentDocument;
165169
if (!this.clickOutsideHandler && this.isClickToHide()) {

0 commit comments

Comments
 (0)