Skip to content

Commit

Permalink
id for div (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaskruchten committed Mar 7, 2018
1 parent 51e1f8b commit e49e242
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/factory.js
Expand Up @@ -265,6 +265,7 @@ export default function plotComponentFactory(Plotly) {
render() {
return (
<div
id={this.props.divId}
style={this.props.style}
ref={this.getRef}
className={this.props.className}
Expand All @@ -288,6 +289,7 @@ export default function plotComponentFactory(Plotly) {
style: PropTypes.object,
className: PropTypes.string,
useResizeHandler: PropTypes.bool,
divId: PropTypes.string,
};

for (let i = 0; i < eventNames.length; i++) {
Expand Down

0 comments on commit e49e242

Please sign in to comment.