.click() was what I was looking for...

pull/1/head
David Baker 2015-07-19 22:54:49 -07:00
parent 29b4f59982
commit 0fa7f6cb63
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ module.exports = React.createClass({
mixins: [MessageComposerController],
onUploadClick(ev) {
//this.refs.uploadInput.getDOMNode.
this.refs.uploadInput.getDOMNode().click();
},
onUploadFileSelected: function(ev) {
@ -38,7 +38,7 @@ module.exports = React.createClass({
render: function() {
var me = this.props.room.getMember(MatrixClientPeg.get().credentials.userId);
var uploadInputStyle = {display: 'block'};
var uploadInputStyle = {display: 'none'};
return (
<div className="mx_MessageComposer">
<div className="mx_MessageComposer_wrapper">