Skip to content

Commit

Permalink
Merge pull request #77 from EricTran5791/master
Browse files Browse the repository at this point in the history
Spread attributes for Re-Flex components
  • Loading branch information
leefsmp committed Jun 17, 2019
2 parents baab236 + 75ec999 commit 58b7914
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/lib/ReflexContainer.js
Expand Up @@ -883,7 +883,9 @@ export default class ReflexContainer extends React.Component {
})

return (
<div className={className}
<div
{...this.props}
className={className}
style={this.props.style}>
{ this.children }
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/lib/ReflexElement.js
Expand Up @@ -235,7 +235,10 @@ export default class ReflexElement extends React.Component {
}

return (
<div className={className} style={style}>
<div
{...this.props}
className={className}
style={style}>
{
this.props.propagateDimensions
? <SizeAwareReflexElement {...this.props}/>
Expand Down
3 changes: 2 additions & 1 deletion src/lib/ReflexHandle.js
Expand Up @@ -235,7 +235,8 @@ export default class ReflexHandle extends React.Component {
].join(' ')

return (
<div
<div
{...this.props}
onTouchStart={this.onMouseDown}
onMouseDown={this.onMouseDown}
style={this.props.style}
Expand Down
3 changes: 2 additions & 1 deletion src/lib/ReflexSplitter.js
Expand Up @@ -235,7 +235,8 @@ export default class ReflexSplitter extends React.Component {
].join(' ')

return (
<div
<div
{...this.props}
onTouchStart={this.onMouseDown}
onMouseDown={this.onMouseDown}
style={this.props.style}
Expand Down

0 comments on commit 58b7914

Please sign in to comment.