-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[React-v14] Use findDOMNode where needed and fix package #1859
[React-v14] Use findDOMNode where needed and fix package #1859
Conversation
Fix some of #1782 |
@@ -23,7 +23,7 @@ var config = { | |||
}, | |||
//Modules will be searched for in these directories | |||
modulesDirectories: [ | |||
"web_modules", |
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.
isn't it redundant with the line bellow?
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.
Webpack fail for me without.
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.
strange... all node_modules of the project are supposed to be included in a 'whatever the current directory is' manner just bellow..
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.
Hum, with the default modulesDirectories
yes. But I think that since we overide it, it's no longer true.
Thanks @oliviertassinari |
[React-v14] Use findDOMNode where needed and fix package
@@ -78,8 +79,8 @@ const CalendarYear = React.createClass({ | |||
_scrollToSelectedYear() { | |||
if (this.refs.selectedYearButton === undefined) return; | |||
|
|||
let container = this.getDOMNode(); | |||
let yearButtonNode = this.refs.selectedYearButton.getDOMNode(); | |||
let container = this.findDOMNode(); |
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.
should be ReactDOM.findDOMNode(this);
Fixed in #1882
@oliviertassinari are you working on fixing these? |
@shaurya947 Yes here #1882. |
-rc1
with the offical release.^
instead of>=
to prevent future breaking changes with react v0.15.getDOMNode
.