jd-opensource / jd-opensource/taro-ui

AtRange 组件获取节点错误

Open
#1,161 2 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

**问题描述**

AtRange UI组件获取节点错误

**复现步骤**

```js
// 这里可以贴代码




{`¥${rentMoney.value[0]} - ¥${rentMoney.value[1] === maxMoney ? '不限' : rentMoney.value[1]}`}





```

**期望行为**

**报错信息**

![image](https://user-images.githubusercontent.com/24968415/89275516-f436bd80-d674-11ea-918a-459a2144c54a.png)

```js
(in promise) MiniProgramError
Cannot read property 'width' of null
TypeError: Cannot read property 'width' of null
at http://127.0.0.1:42404/appservice/vendors.js:45136:42
```
**系统信息**

"dependencies": {
"@babel/runtime": "^7.7.7",
"@tarojs/components": "3.0.2",
"@tarojs/react": "3.0.2",
"@tarojs/redux-h5": "^2.2.10",
"@tarojs/runtime": "3.0.2",
"@tarojs/taro": "3.0.2",
"react": "^16.10.0",
"react-dom": "^16.10.0",
"redux": "^4.0.5",
"classnames": "^2.2.6",
"react-redux": "^7.2.0",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.3.0",
"taro-ui": "^3.0.0-alpha.3"
},

**补充信息**

![image](https://user-images.githubusercontent.com/24968415/89275675-29431000-d675-11ea-8b42-432c3652dc00.png)

页面更新hooks数据,页面刷新重新加载导致

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.