Skip to content

Commit

Permalink
fix: pass disabled prop to input
Browse files Browse the repository at this point in the history
  • Loading branch information
linxianxi committed Jun 2, 2023
1 parent 0d0ca2f commit 66b01ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AjaxUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ class AjaxUploader extends Component<UploadProps> {
<input
{...pickAttrs(otherProps, { aria: true, data: true })}
id={id}
disabled={disabled}
type="file"
ref={this.saveFileInput}
onClick={e => e.stopPropagation()} // https://github.com/ant-design/ant-design/issues/19948
Expand Down

0 comments on commit 66b01ab

Please sign in to comment.