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

Taro3.5.3 Vue2 中 textarea 组件设置高度不生效,同时会默认显示 150px 的空白高度 #12317

Closed
hauk0101 opened this issue Aug 18, 2022 · 0 comments · Fixed by #12375 or #12419
Labels
E-easy Helper Wanted - Easy F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@hauk0101
Copy link

相关平台

H5

复现仓库

https://github.com/hauk0101/taro-bug-report-textarea
浏览器版本: 版本 104.0.5112.79(正式版本) (x86_64)
使用框架: Vue 2

复现步骤

npm run dev:h5

期望结果

高度为 style 中设置的高度

实际结果

撑开了150px,且业务代码中并没有这个 150px 设置

环境信息

Taro CLI 3.5.3 environment info:
    System:
      OS: macOS 12.0.1
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 14.16.0 - /usr/local/bin/node
      Yarn: 1.16.0 - /usr/local/bin/yarn
      npm: 6.14.11 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.5.3 => 3.5.3 
      @tarojs/components: 3.5.3 => 3.5.3 
      @tarojs/helper: 3.5.3 => 3.5.3 
      @tarojs/mini-runner: 3.5.3 => 3.5.3 
      @tarojs/plugin-framework-vue2: 3.5.3 => 3.5.3 
      @tarojs/plugin-platform-alipay: 3.5.3 => 3.5.3 
      @tarojs/plugin-platform-jd: 3.5.3 => 3.5.3 
      @tarojs/plugin-platform-qq: 3.5.3 => 3.5.3 
      @tarojs/plugin-platform-swan: 3.5.3 => 3.5.3 
      @tarojs/plugin-platform-tt: 3.5.3 => 3.5.3 
      @tarojs/plugin-platform-weapp: 3.5.3 => 3.5.3 
      @tarojs/router: 3.5.3 => 3.5.3 
      @tarojs/runtime: 3.5.3 => 3.5.3 
      @tarojs/shared: 3.5.3 => 3.5.3 
      @tarojs/taro: 3.5.3 => 3.5.3 
      @tarojs/taro-h5: 3.5.3 => 3.5.3 
      @tarojs/webpack-runner: 3.5.3 => 3.5.3 
      babel-preset-taro: 3.5.3 => 3.5.3 
      eslint-config-taro: 3.5.3 => 3.5.3 
    npmGlobalPackages:
      typescript: 4.2.4


补充信息

1、taro-textarea-core 元素的 height 没有被 textarea 继承
2、可能与 :auto-height 有关
3、配合 min-height 和 :auto-height 可以临时解决问题,但和文档描述不符

@taro-bot2 taro-bot2 bot added F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Aug 18, 2022
@ZakaryCode ZakaryCode added the E-easy Helper Wanted - Easy label Aug 23, 2022
ZakaryCode pushed a commit that referenced this issue Aug 29, 2022
fix #12317

Co-authored-by: TianxingQin <qintianxing@foxmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Helper Wanted - Easy F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
2 participants