Skip to content
Snippets Groups Projects
Commit c2242103 authored by Tom Robinson's avatar Tom Robinson
Browse files

s/getDOMNode/findDOMNode/

parent a48213b1
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ export default React.createClass({
componentDidMount: function() {
// HACK: set the z-index of the parent element to ensure it's always on top
this.getDOMNode().parentNode.style.zIndex = popoverStack.length + 2; // HACK: add 2 to ensure it's in front of main and nav elements
React.findDOMNode(this).parentNode.style.zIndex = popoverStack.length + 2; // HACK: add 2 to ensure it's in front of main and nav elements
},
componentWillUnmount: function() {
......
......@@ -31,7 +31,7 @@ export default React.createClass({
event.preventDefault();
// make sure that user put in a card name before we close out the form
var name = this.refs.name.getDOMNode().value.trim();
var name = React.findDOMNode(this.refs.name).value.trim();
if (!name || name === "") {
this.setState({
errors: {
......@@ -47,8 +47,8 @@ export default React.createClass({
}
var card = this.props.card;
card.name = this.refs.name.getDOMNode().value.trim();
card.description = this.refs.description.getDOMNode().value.trim();
card.name = React.findDOMNode(this.refs.name).value.trim();
card.description = React.findDOMNode(this.refs.description).value.trim();
card.public_perms = 2; // public read/write
this.props.saveFn(card).then((success) => {
......
......@@ -26,7 +26,7 @@ export default ComposedComponent => class extends Component {
onClose(e) {
// don't close if clicked the actual trigger, it will toggle
if (e && e.target && this.refs.trigger.getDOMNode().contains(e.target)) {
if (e && e.target && React.findDOMNode(this.refs.trigger).contains(e.target)) {
return;
}
this.close();
......
......@@ -91,8 +91,8 @@ export default React.createClass({
createNewDash: function(event) {
event.preventDefault();
var name = this.refs.name.getDOMNode().value.trim();
var description = this.refs.description.getDOMNode().value.trim();
var name = React.findDOMNode(this.refs.name).value.trim();
var description = React.findDOMNode(this.refs.description).value.trim();
var perms = parseInt(this.refs.public_perms.state.value);
// populate a new Dash object
......@@ -168,7 +168,7 @@ export default React.createClass({
var name = null;
if (this.refs.name) {
name = this.refs.name.getDOMNode().value.trim();
name = React.findDOMNode(this.refs.name).value.trim();
}
var formReady = (name !== null && name !== "");
......
......@@ -7,7 +7,7 @@ export default React.createClass({
onFilter: PropTypes.func.isRequired
},
handleInputChange: function () {
this.props.onFilter(this.refs.filterTextInput.getDOMNode().value);
this.props.onFilter(React.findDOMNode(this.refs.filterTextInput).value);
},
render: function () {
return (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment