jd-opensource / jd-opensource/taro-ui

AtFloatLayout只能打开一次 ? 3.0.0-alpha.9版本

Open
#1,284 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

### Taro UI 版本信息

v2.3.4

### 问题描述

使用hook定义一个state 在isOpened 然后通过ref的close事件关闭了 就打不开了

### 复现步骤

使用hook定义一个state 在isOpened 然后通过ref的close事件关闭了 就打不开了

### 复现代码

const AtFloatLayoutRef = useRef(null)
const [showWeGropModal, setShowWeGropModal] = useState(false)

4545454

### 报错信息

打不开AtFloatLayout 了

### 系统信息

Taro3.0.17

### 补充信息

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.