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

v3.6.4 Input标签 #13593

Closed
shiguo2021 opened this issue Apr 6, 2023 · 9 comments
Closed

v3.6.4 Input标签 #13593

shiguo2021 opened this issue Apr 6, 2023 · 9 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 to be closed V-3 Version - 3.x

Comments

@shiguo2021
Copy link

shiguo2021 commented Apr 6, 2023

相关平台

H5

浏览器版本: Chrome111
使用框架: React

Input标签使用报错

 react-dom.development.js?61bb:22839 Uncaught RangeError: Maximum call stack size exceeded
    at _class.get (taro-input-core.js?cca2:183:1)
    at _class.set (taro-input-core.js?cca2:184:1)
    at _class.set (taro-input-core.js?cca2:184:1)
    at _class.set (taro-input-core.js?cca2:184:1)
    at _class.set (taro-input-core.js?cca2:184:1)
    at _class.set (taro-input-core.js?cca2:184:1)
    at _class.set (taro-input-core.js?cca2:184:1)
    at _class.set (taro-input-core.js?cca2:184:1)
    at _class.set (taro-input-core.js?cca2:184:1)
    at _class.set (taro-input-core.js?cca2:184:1)

环境信息

  Taro CLI 3.6.4 environment info:
    System:
      OS: macOS 12.3.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.14.2 - /usr/local/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 8.5.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.4 => 3.6.4 
      @tarojs/components: 3.6.4 => 3.6.4 
      @tarojs/helper: 3.6.4 => 3.6.4 
      @tarojs/plugin-framework-react: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-alipay: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-h5: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-jd: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-qq: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-swan: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-tt: 3.6.4 => 3.6.4 
      @tarojs/plugin-platform-weapp: 3.6.4 => 3.6.4 
      @tarojs/react: 3.6.4 => 3.6.4 
      @tarojs/runtime: 3.6.4 => 3.6.4 
      @tarojs/shared: 3.6.4 => 3.6.4 
      @tarojs/taro: 3.6.4 => 3.6.4 
      @tarojs/webpack5-runner: 3.6.4 => 3.6.4 
      babel-preset-taro: 3.6.4 => 3.6.4 
      eslint-config-taro: 3.6.4 => 3.6.4 
      react: ^18.0.0 => 18.2.0 
    npmGlobalPackages:
      typescript: 4.6.3
@TheKonka
Copy link
Member

TheKonka commented Apr 6, 2023

仓库地址不对吧

@shiguo2021
Copy link
Author

仓库地址不对吧
那不是重点

@TheKonka
Copy link
Member

TheKonka commented Apr 6, 2023

因为 这个问题 前面遇到过 #13316 最新版本修复了的,我自己试了最新版本也没有复现

@shiguo2021
Copy link
Author

        <Input style={{ flex: 1, height: '100%', display: 'flex', alignItems: 'center' }} placeholder='请搜索物品名称'
          value={viewModel.search}
          onConfirm={e => {
            console.log('onConfirm',e)
            if (requestInfoRef) {
              requestInfoRef.current.pageNo = 1
            }
            loadData && loadData()
          }}
        />

新版本拉了demo确实没问题,项目工程升级后就报错(所有依赖使用的模版工程里面的)

@TheKonka TheKonka added V-3 Version - 3.x F-react Framework - React T-h5 Target - 编译到 H5 labels Apr 6, 2023
@SidneyLann
Copy link
Contributor

3.6.4-alpha还是有这个问题

@ZakaryCode
Copy link
Contributor

项目工程升级后就报错

报错指?

@shiguo2021
Copy link
Author

项目工程升级后就报错

报错指?

升级后win和mac存在不同报错,多处报错。搞不动了,目前回滚到v3.4。

@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
@ZakaryCode ZakaryCode moved this to Padding in H5 Apr 10, 2023
@ShaoGongBra
Copy link
Contributor

3.6.5有同样的问题,Input绑定了Value,第一次渲染正常,后面如果再次触发渲染,就会报这个错误

@ZakaryCode
Copy link
Contributor

Duplicate of #13734

@ZakaryCode ZakaryCode marked this as a duplicate of #13734 Apr 28, 2023
@github-project-automation github-project-automation bot moved this from Padding to Done in H5 Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 to be closed V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

5 participants