-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update react-pdf to 1.6.1 Closes #1533 #1555
Conversation
@@ -28,7 +28,7 @@ const PrintOption = React.createClass({ | |||
}; | |||
}, | |||
onChange() { | |||
this.props.onChange(this.refs.input.getInputDOMNode().checked); | |||
this.props.onChange(!this.refs.input.props.checked); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you inverting the value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the old one.
getInputDOMNode() just returns null
@@ -101,7 +101,7 @@ let BackgroundSwitcher = React.createClass({ | |||
}, | |||
render() { | |||
return ( | |||
<Grid id={this.props.id} className="BackgroundSwitcherComponent" header={this.props.name} fluid={this.props.fluid}>{this.renderBackgrounds()}</Grid> | |||
<Grid id={this.props.id} className="BackgroundSwitcherComponent" fluid={this.props.fluid}>{this.renderBackgrounds()}</Grid> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is header not needed anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it ever was, header is not a property of Grid
@@ -48,42 +48,34 @@ describe("Test the PrintPreview component", () => { | |||
expect(node).toExist(); | |||
}); | |||
|
|||
it('creates component and loads pdf', (done) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was testing ReactPDF and it is no longer mockable
No description provided.