daily-share icon indicating copy to clipboard operation
daily-share copied to clipboard

IOS active 状态失效问题(2021-8-30)

Open yaogengzhu opened this issue 3 years ago • 1 comments

IOS active 状态失效问题解决方案

  useEffect(() => {
      document.addEventListener('touchstart', () => {}, false);

      return () => {
          document.removeEventListener('touchstart', () => {}, false);
      };
  }, []);

yaogengzhu avatar Aug 30 '21 05:08 yaogengzhu

不要用匿名函数操作!

yaogengzhu avatar Sep 02 '21 07:09 yaogengzhu