LarkMap icon indicating copy to clipboard operation
LarkMap copied to clipboard

🐛 [BUG]

Open Afee2019 opened this issue 1 year ago • 0 comments

🐛 React 18 + StrictMode 下, LayerPopup不显示

  • 直接测试的这个的范例代码:https://larkmap.antv.antgroup.com/components/layer-popup

📷 Step to reproduce

  1. 创建默认的React 18 应用
  2. 拷贝范例代码并替代 App.tsx

🏞 Expected result

鼠标移到区域上后,不显示图层信息框

🚑 Any additional [like screenshots]

将main.tsx中 <React.StrictMode> 注释后,就能显示图层信息框了 ReactDOM.createRoot(document.getElementById('root')!).render( // <React.StrictMode> <App /> // </React.StrictMode>, )

  • LarkMap Version: "@antv/l7": "^2.17.7", "@antv/larkmap": "^1.4.1",
  • Platform: "react": "^18.2.0", "react-dom": "^18.2.0"

Afee2019 avatar Aug 06 '23 01:08 Afee2019