WeChat applet, taro label selectable, user-select long press to customize copy selection
WeChat applet long press to copy and select the copywriting method, add [selectable] attribute to the label, if invalid, change it to [user-select]
The original applet needs to be changed, and both properties of component libraries such as taro support it.
as follows:
// 更改前(taro支持)
<text selectable>长按复制文字</text>
// 不生效更改后(taro支持)
<text user-select>长按复制文字</text>
I encountered it when writing a project with taro, checked this attribute, and it has been verified.
Reference document
https://blog.csdn.net/weixin_59803648/article/details/125985044