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

[Component] [input] input component: The clearable attribute is invalid #16865

Open
Kimberleeee opened this issue May 15, 2024 · 1 comment
Open

Comments

@Kimberleeee
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.4.21
  • Element Plus Version: 2.6.3
  • Browser / OS: chrome/124.0.6367.201 windows10
  • Build Tool: Vite

Reproduction

Related Component

  • el-input

Reproduction Link

Element Plus Playground

Steps to reproduce

Create an input component with readonly and clearable attributes.

What is Expected?

The clearable attribute is valid

What is actually happening?

The clearable attribute is invalid when there is a value in the input component

Additional comments

When I want the user to click on the input component to display a popup and assign a value to the input component using the data in the popup, I need to use the readonly property, but I also need to use the clearable property to make the data clear

@webvs2
Copy link
Contributor

webvs2 commented May 15, 2024

在input的定义中,readonly 属性规定输入字段为只读。可清除依旧是对数据的一种修改。所以我认为这不是一个问题,建议使用其他but来辅助实现

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

No branches or pull requests

2 participants