-
-
Notifications
You must be signed in to change notification settings - Fork 327
add directory support #93
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
Conversation
src/AjaxUploader.jsx
Outdated
|
||
componentDidMount() { | ||
this.refs.file.directory = this.props.directory; | ||
this.refs.file.webkitdirectory = this.props.directory; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用 props 传递,而非通过引用修改。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benjycui facebook/react#3468 :(
如果还要支持React15的话,就只能这么搞了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebase 下 master,这个 ref 已经改掉了。
ping~ |
最近活比较多=_=,我看下我要改啥 |
这个测试我没看懂应该怎么写:( |
同样的需求,但是这个 feature 目前无法支持 ie 和 safari,还要加到 |
ci broken |
😂等我明天爬起来改一下 |
不急 🙃 |
刚才同步修改出了点偏差,重建了master分支:( |
实现比较拙计