Closed eiinu closed 1 month ago
此次修改主要集中在 src/packages/__VUE/textarea/textarea.taro.vue
文件中,对 auto-focus
属性进行了调整。现在该属性将根据 autofocus
的值有条件地设置为 true
或 undefined
,以便更灵活地控制自动聚焦功能。
文件路径 | 修改摘要 |
---|---|
src/packages/__VUE/textarea/textarea.taro.vue |
将 :auto-focus="autofocus" 修改为 :auto-focus="autofocus ? true : undefined" |
🐇✨ 代码如诗,变幻无穷, 聚焦随心,灵活自如。 改动虽小,意蕴深长, 未来之路,代码护航。 🌟📜
[!WARNING]
Review ran into problems
Problems (1)
* Git: Failed to clone repository. Please contact CodeRabbit support.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 83.96%. Comparing base (
0c84db1
) to head (4837f5b
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
这个 PR 做了什么? (简要描述所做更改)
场景:textarea 的使用层级较深(即被多层组件包裹使用)时,输入会触发失去焦点,导致无法连续输入 代码:当 autofoucs 设置为 false 时,上述场景会被触发 解决办法:当 autofocus 为 true 时设置属性,否则不设置
历史提交: https://github.com/jdf2e/nutui/commit/810cb85c161f33497470cb18d23e3f83866edb69
2123
关联信息: NutUI Taro 中的 Textarea 组件中使用的是 HTML 标签 textarea,会被 Taro 的插件
@tarojs/plugin-html
转换为小程序原生的 textarea,其中 auto-focus 属性会被映射为 focus这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台:
这个 PR 是否已自测:
Summary by CodeRabbit
textarea
组件中auto-focus
属性的问题,现在会根据autofocus
的值有条件地设置为true
。