taro icon indicating copy to clipboard operation
taro copied to clipboard

Input defaultValue 为 undefined 无法显示 value 的值

Open crazyair opened this issue 1 year ago • 1 comments

相关平台

微信小程序

小程序基础库: latest 使用框架: React

复现步骤

相关平台

微信小程序

小程序基础库: latest 使用框架: React

复现步骤

https://github.com/crazyair/taro-demo-2

dev:weapp 启动项目即可看到

期望结果

value 的值能正确显示

实际结果

value 不显示

环境信息

👽 Taro v3.6.28


  Taro CLI 3.6.28 environment info:
    System:
      OS: macOS 13.6.2
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node
      Yarn: 1.22.19 - ~/.yarn/bin/yarn
      npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.28 => 3.6.28 
      @tarojs/components: 3.6.28 => 3.6.28 
      @tarojs/helper: 3.6.28 => 3.6.28 
      @tarojs/plugin-framework-react: 3.6.28 => 3.6.28 
      @tarojs/plugin-platform-alipay: 3.6.28 => 3.6.28 
      @tarojs/plugin-platform-h5: 3.6.28 => 3.6.28 
      @tarojs/plugin-platform-jd: 3.6.28 => 3.6.28 
      @tarojs/plugin-platform-qq: 3.6.28 => 3.6.28 
      @tarojs/plugin-platform-swan: 3.6.28 => 3.6.28 
      @tarojs/plugin-platform-tt: 3.6.28 => 3.6.28 
      @tarojs/plugin-platform-weapp: 3.6.28 => 3.6.28 
      @tarojs/react: 3.6.28 => 3.6.28 
      @tarojs/runtime: 3.6.28 => 3.6.28 
      @tarojs/shared: 3.6.28 => 3.6.28 
      @tarojs/taro: 3.6.28 => 3.6.28 
      @tarojs/taro-loader: 3.6.28 => 3.6.28 
      @tarojs/webpack5-runner: 3.6.28 => 3.6.28 
      babel-preset-taro: 3.6.28 => 3.6.28 
      eslint-config-taro: 3.6.28 => 3.6.28 
      react: ^18.0.0 => 18.3.1 

dev:weapp 启动项目即可看到

期望结果

value 的值能正确显示

实际结果

value 不显示

crazyair avatar May 08 '24 01:05 crazyair

defaultValue 为 undefined,value 为 aaa image

但是在小程序不显示值

image

crazyair avatar May 08 '24 01:05 crazyair