Skip to content

Commit f50e4a4

Browse files
committed
Upgrade syntax to find DOM
1 parent 94fcc93 commit f50e4a4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

components/SLDSDropdownBase/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ module.exports = React.createClass( {
274274
]);
275275
return (
276276

277-
<SLDSButton
277+
<SLDSButton
278278
ref='button'
279279
aria-haspopup='true'
280280
label={this.props.label}
@@ -344,4 +344,4 @@ module.exports = React.createClass( {
344344
});
345345

346346
module.exports.ListItem = ListItem;
347-
module.exports.ListItemLabel = ListItemLabel;
347+
module.exports.ListItemLabel = ListItemLabel;

components/SLDSPopover.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = React.createClass( {
3838
return {
3939
targetAttachment: 'bottom left',
4040
className: 'slds-dropdown',
41-
closeOnTabKey: false
41+
closeOnTabKey: false
4242
};
4343
},
4444

@@ -98,7 +98,7 @@ module.exports = React.createClass( {
9898
onKeyDown={this.handleKeyDown}
9999
>
100100
{/*
101-
<Spring
101+
<Spring
102102
defaultValue={{ val:0 }}
103103
endValue={{ val:1, config: [70, 10] }}>
104104
{currentVal => {
@@ -124,7 +124,7 @@ module.exports = React.createClass( {
124124
},
125125

126126
dropOptions () {
127-
let target = this.props.targetElement?this.props.targetElement.getDOMNode():this.getDOMNode().parentNode;
127+
let target = this.props.targetElement?React.findDOMNode(this.props.targetElement):React.findDOMNode(this).parentNode;
128128
return {
129129
target: target,
130130
content: this.popoverElement,
@@ -145,8 +145,8 @@ module.exports = React.createClass( {
145145

146146
React.render( this.popoverComp(), this.popoverElement );
147147

148-
if(this.popoverElement &&
149-
this.popoverElement.parentNode &&
148+
if(this.popoverElement &&
149+
this.popoverElement.parentNode &&
150150
this.popoverElement.parentNode.parentNode &&
151151
this.popoverElement.parentNode.parentNode.className &&
152152
this.popoverElement.parentNode.parentNode.className.indexOf('drop ') > -1 ){

0 commit comments

Comments
 (0)