Comments (20)
Ah, thank you for trying the component with react 0.14.
I've heard of this change, but I don't know how to best handle it, so that the component can be used with react 0.13 and 0.14.
Checking for getDOMNode
to be defined seems like a pretty brute way to do it :/
Happy to receive any input concerning this.
from react-slider.
Yeah, I'm not sure either what is the best way to go forward with this, without breaking backwards comparability. In React 0.14, this is only a warning, so maybe is should just stay like it is until it will be totally deprecated.
from react-slider.
Now would be the time to fix the warning so the component doesn't break when it is totally deprecated.
I assume there will be a suggested way of handling this once 0.14 is released. Or we just add the check...
from react-slider.
I think .findDOMNode()
replaces it, no?
http://www.omerwazir.com/posts/react-getdomnode-replaced-with-findDOMNode/
from react-slider.
@canfie1d That change was introduced in React 0.13, but 0.14 includes further changes. findDOMNode()
is no longer a part of the react package, but rather a new react-dom package. Also, refs that point to a DOM component now are the DOM node, and should not be wrapped with findDOMNode()
. See more here in the React 0.14 blog post
from react-slider.
Ah- I see. Thanks for that.
from react-slider.
Looks like the right way to release new version of a package with strict dependency to react 0.14.
PS. Similar idea: moroshko/react-autosuggest@4ab699d
from react-slider.
Thanks for looking it up π
from react-slider.
Any news on that ? react 0.14 is out now.
Instead of findDOMNode, just use refs:
render() {
return <div ref='element'></div>;
}
doSomething() {
console.log(this.refs.element); // will print the node element to the console
}
from react-slider.
I too am looking forward to .14 support.
from react-slider.
The warning stops happening if you just remove the ".findDOMNode()" from 2 places in the code.
from react-slider.
I submitted a PR for that, but the maintainer seems inactive.
from react-slider.
@KeitIG your PR doesnβt seem to update package.json or handle compatibility with 0.13
from react-slider.
True dat, doing it asap.
from react-slider.
Done.
from react-slider.
π
from react-slider.
Waiting fix too. @KeitIG Thanks
from react-slider.
@Martindelataille, yep, would be great if the PR was accepted now :)
from react-slider.
Issue can be closed now a new version is released. poke @hugihlynsson
from react-slider.
Super!
from react-slider.
Related Issues (20)
- TypeScript error when using Augmented CSS in React v18 HOT 2
- inverted slider keyDown goes the wrong way. HOT 1
- React 18.3: A props object containing a "key" prop is being spread into JSX HOT 4
- First click on track doesn't work when slider value is array and array values is equal
- Typescript issue HOT 1
- Possible to use a gradient as background for the slider? HOT 1
- Feature request: provide a way of detecting when react-slider has/loses focus HOT 2
- The specified value "1,669" cannot be parsed, or is out of range. HOT 1
- disabled does not apply to child elements?
- [TypeScript] `renderThumb`
- Module not found: Error: Can't resolve '@babel/runtime/helpers/inheritsLoose' HOT 4
- How to handle key events when I have global listeners? HOT 2
- Thumb Incorrect positioning HOT 1
- Slider not changing value when running Cypress tests HOT 3
- Wrong index in change event when changing thumb value through click
- No option to remove the slider thumb from the 'tab flow' HOT 1
- README.md file should be updated for how to use the packege HOT 2
- Missing dependency: @babel/runtime HOT 1
- Styling instructions are out of date
- Not working on Scaled Div
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-slider.