Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H5端AtSwipeAction拉开无法固定,报错获取不到dom的width #574

Closed
PopperLi opened this issue May 10, 2019 · 8 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@PopperLi
Copy link

PopperLi commented May 10, 2019

问题描述

复现步骤

  1. 不太清楚复现问题的步骤

期望行为

报错信息

image

系统信息

👽 Taro v1.2.26

Taro CLI 1.2.26 environment info:
System:
OS: Windows 10
Binaries:
Node: 10.15.1 - C:\Program Files\nodejs\node.EXE
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD

  • Taro 版本 [e.g. v.1.2.26]
  • Taro UI 版本 [e.g. v.2.1.0]
  • 报错平台 [h5]

补充信息

@SzHeJason SzHeJason self-assigned this May 10, 2019
@SzHeJason SzHeJason added the bug Something isn't working label May 10, 2019
@SzHeJason
Copy link
Collaborator

SzHeJason commented May 31, 2019

不好意思 这个问题很多人反馈 但是由于最近没时间去研究怎么重现 所以一直没解决
如果发出现该问题的coder们 提供复现代码的话 我随时可以帮你们解决

@yu86144
Copy link

yu86144 commented Jun 10, 2019

不好意思 这个问题很多人反馈 但是由于最近没时间去研究怎么重现 所以一直没解决
如果发出现该问题的coder们 提供复现代码的话 我随时可以帮你们解决

是因为他们componentId传入了是id,应该是componentId,因为上面componentId里面才++, id是没加加,所以导致componentId重复了

@SzHeJason
Copy link
Collaborator

SzHeJason commented Jun 11, 2019

@yu86144 你这边尝试 换成 componentId 就正常了吗? ++id 实际上 id 也是会自增的

@yu86144
Copy link

yu86144 commented Jun 11, 2019

@yu86144 你这边尝试 换成 componentId 就正常了吗? ++id 实际上 id 也是会自增的

但是换成componentId 就没报错了

@SzHeJason
Copy link
Collaborator

@yu86144 好的 那我改下发个版本

@yu86144
Copy link

yu86144 commented Jun 11, 2019

@yu86144 好的 那我改下发个版本

id是有++, 但是render方法里面的id,还是默认初始值0,我刚才测试过了

@nicholasxuu
Copy link

这个问题还是存在,微信小程序里,
delayQuerySelector(..., '#swipeActionOptions-${this.props.componentId}', ...)的结果是[null],然后null.width报错。

@noneorone
Copy link

这个问题还是存在,微信小程序里,
delayQuerySelector(..., '#swipeActionOptions-${this.props.componentId}', ...)的结果是[null],然后null.width报错。

支付宝小程序遇到这个问题了,您最后是怎么解决的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants