trigger
trigger copied to clipboard
Abstract React Trigger
Found this issue using the Ant Design package and traced it down to this dependency. Reference: https://github.com/ant-design/ant-design/issues/35897 Reproduce: https://codesandbox.io/s/ant-design-web-component-issues-lx7d2v?file=/index.js Workaround is to pass this prop: ``` getDocument={documentElement && (() =>...
I use 'popupVisible' and 'onPopupVisibleChange' with React.useState,but popup won't close once opened ``` jsx import React, { useState } from "react"; import "antd/dist/antd.css"; import Trigger from "rc-trigger"; import { List,...
For example, there is a component wrapped in an rc-trigger located on the right edge of the browser, and the trigger point is located on the right edge. Clicking on...
When using the popover from Antd in a WebComponent with the "click" action the "click away" does not work, the popover is never closed. When clicking on the trigger button...
Here is my code:  Popup can be opened on click, but can not be closed on click Why? Can anyone tell me ? thx
solution borrowed from https://github.com/react-component/select/pull/575
增加triggerEventListenerOption参数,在react 17时,设置成{capture: true}时,clickOutsideHandler中关闭逻辑不会被使用者业务逻辑里的stopPropagation 破坏。
this PR boosts performance in our React App, when unmounting a large list containing 10k+ `rc-tooltip`s
当 `popupVisible` 定义为 `undefined` 时,popup 将无法触发
Hello, I was recently doing some performance testing on a virtual table component I had written. With rows constantly unmounting & remounting, I wanted to make sure the scroll was...