Skip to content

Commit

Permalink
pass style props to Affix (ant-design#4715)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai authored Jan 26, 2017
1 parent 5cd111d commit 340385d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/affix/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ export default class Affix extends React.Component<AffixProps, any> {
});

const props = omit(this.props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target']);

const placeholderStyle = { ...this.state.placeholderStyle, ...this.props.style };
return (
<div {...props} style={this.state.placeholderStyle}>
<div {...props} style={placeholderStyle}>
<div className={className} ref="fixedNode" style={this.state.affixStyle}>
{this.props.children}
</div>
Expand Down

0 comments on commit 340385d

Please sign in to comment.