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

Upload 组件支持 disabled 属性 #1541

Closed
superRaytin opened this issue Apr 28, 2016 · 5 comments
Closed

Upload 组件支持 disabled 属性 #1541

superRaytin opened this issue Apr 28, 2016 · 5 comments

Comments

@superRaytin
Copy link
Contributor

举个例子,设置 disabled 为 true 后,点击就不唤起系统的上传窗口

  <Upload disabled>
    <Button type="ghost" disabled>
      <Icon type="upload" /> 点击上传
    </Button>
  </Upload>
@afc163
Copy link
Member

afc163 commented Apr 28, 2016

  <Upload>
    <Button type="ghost" disabled>
      <Icon type="upload" /> 点击上传
    </Button>
  </Upload>

这样目前就不会唤起。

@afc163 afc163 closed this as completed Apr 28, 2016
@superRaytin
Copy link
Contributor Author

我试了发现会唤起:http://codepen.io/superRaytin/pen/mPRjvP

@afc163 afc163 reopened this Apr 28, 2016
@afc163
Copy link
Member

afc163 commented Apr 28, 2016

我发现 Firefox 下是不唤起的,Chrome 却会。

按道理 button[disabled] 应该不响应鼠标事件。

@superRaytin
Copy link
Contributor Author

感觉是 upload 那一层触发的

@lock
Copy link

lock bot commented May 5, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants