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

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