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

[SearchSelect <组件搜索选择器>]: 不能正确禁用 #692

Closed
gssggssg opened this issue Mar 18, 2022 · 1 comment
Closed

[SearchSelect <组件搜索选择器>]: 不能正确禁用 #692

gssggssg opened this issue Mar 18, 2022 · 1 comment

Comments

@gssggssg
Copy link
Contributor

描述错误

SearchSelect 在设置了 disabled={true} 只是在 input 框呈现禁用状态,但其实还是可以进行搜索选择,和清除操作

错误复现

重现行为的步骤:

  1. 进入我提供在线实例
  2. 点击禁用的输入框
  3. 出现下拉框后,点击某项

测试代码

const Demo = () => {
  const selectOption = [
    { label: "a1", value: 1 },
    { label: "a2", value: 2 },
    { label: "a3", value: 3 }
  ];
  return (
    <div>
      <SearchSelect
        mode="multiple"
        disabled={true}
        showSearch={true}
        labelInValue={true}
        allowClear
        option={selectOption}
        placeholder="请输入选择"
      />
    </div>
  );
};

提供在线重现示例

在线实例地址
Open in CodeSandbox

预期行为

当设置禁用后,不出现下拉选择框,也不能进行选择和清除操作

截图

设置无效
image

桌面(请填写以下信息):

  • UIW:4.14.2
  • 操作系统:windows10
  • 浏览器:Chrome
  • 版本和构建: 99.0.4844.74(正式版本) (64 位)
@nullptr-z
Copy link
Collaborator

@gssggssg 已修复 发布版本v4.15.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants