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

[t-textarea] cursors属性不生效 #3360

Open
xiaoshangmin opened this issue Dec 14, 2024 · 2 comments
Open

[t-textarea] cursors属性不生效 #3360

xiaoshangmin opened this issue Dec 14, 2024 · 2 comments
Labels
question This is a question, not a bug

Comments

@xiaoshangmin
Copy link

xiaoshangmin commented Dec 14, 2024

tdesign-miniprogram 版本

1.8.2

重现链接

No response

重现步骤

 <t-textarea  value="{{msg}}" maxlength="600" cursor="{{cursor}}"  autosize disableDefaultPadding="{{true}}" bind:enter="onTextSubmit" bind:change="onTextChange" show-confirm-bar="{{false}}"  bind:focus="onFocus"/>
读取缓存给textarea后 真机(我这里是iPhone15 pro)聚焦光标不生效(缓存是有值的)
	onLoad: function () {
	this.setData({
            cursor:wx.getStorageSync('content').length
    })
	},

期望结果

No response

实际结果

No response

基础库版本

3.7.0

补充说明

No response

Copy link
Contributor

👋 @xiaoshangmin,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Dec 16, 2024

@xiaoshangmin 你可以同步测试一下原生textarea组件的cursor属性是否符合预期,t-textarea是基于原生textarea封装的,原生组件API我们没有做特殊处理,理论上两者表现应该一致。如果cursor属性在textarea组件符合预期而t-textarea不生效,那确实是t-textarea组件有问题,我们会进一步跟进修复、

@anlyyao anlyyao added the question This is a question, not a bug label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants