Skip to content

[TDInput] 更新0.2.7后长按文本框不显示粘贴 #960

Description

@goj177

tdesign-flutter 版本

0.2.7

重现链接

No response

重现步骤/代码

tdesign从0.2.6更新至0.2.7后,文本框没有内容时,长按不显示粘贴,即使显式设置enableInteractiveSelection: true也无效

期望结果

为空时也显示粘贴,与之前版本一致

实际结果

No response

Flutter版本

3.35.3

设备与机型信息

No response

系统版本

No response

补充说明

调用代码:Expanded(
child: Container(
margin: EdgeInsets.only(left: 10.w, right: 10.w),
padding: EdgeInsets.only(left: 10.w, right: 10.w),
decoration: BoxDecoration(color: ColorUtil.getBg()),
child: TDInput(
enableInteractiveSelection: true,
size: TDInputSize.small,
controller: controllerEdit,
inputType: TextInputType.text,
hintText: '请输入系统域名',
maxLines: 1,
autofocus: false,
needClear: true,
spacer: TDInputSpacer(
iconLabelSpace: 0,
inputRightSpace: 0,
labelInputSpace: 10,
rightSpace: 0,
additionInfoSpace: 0),
hintTextStyle: TextStyle(
fontSize: 14.sp,
color: ColorUtil.getMainFontColor2()),
textStyle: TextStyle(fontSize: 14.sp),
),
))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions