File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ export default class DateTimeField extends Component {
263
263
this . setState ( {
264
264
showPicker : true
265
265
} ) ;
266
- gBCR = findDOMNode ( this . refs . dtpbutton ) . getBoundingClientRect ( ) ;
266
+ gBCR = this . refs . dtpbutton . getBoundingClientRect ( ) ;
267
267
classes = {
268
268
"bootstrap-datetimepicker-widget" : true ,
269
269
"dropdown-menu" : true
@@ -272,11 +272,11 @@ export default class DateTimeField extends Component {
272
272
top : gBCR . top + window . pageYOffset - document . documentElement . clientTop ,
273
273
left : gBCR . left + window . pageXOffset - document . documentElement . clientLeft
274
274
} ;
275
- offset . top = offset . top + findDOMNode ( this . refs . datetimepicker ) . offsetHeight ;
275
+ offset . top = offset . top + this . refs . datetimepicker . offsetHeight ;
276
276
scrollTop = ( window . pageYOffset !== undefined ) ? window . pageYOffset : ( document . documentElement || document . body . parentNode || document . body ) . scrollTop ;
277
- placePosition = this . props . direction === "up" ? "top" : this . props . direction === "bottom" ? "bottom" : this . props . direction === "auto" ? offset . top + findDOMNode ( this . refs . widget ) . offsetHeight > window . offsetHeight + scrollTop && this . refs . widget . offsetHeight + findDOMNode ( this . refs . datetimepicker ) . offsetHeight > offset . top ? "top" : "bottom" : void 0 ;
277
+ placePosition = this . props . direction === "up" ? "top" : this . props . direction === "bottom" ? "bottom" : this . props . direction === "auto" ? offset . top + this . refs . widget . offsetHeight > window . offsetHeight + scrollTop && this . refs . widget . offsetHeight + this . refs . datetimepicker . offsetHeight > offset . top ? "top" : "bottom" : void 0 ;
278
278
if ( placePosition === "top" ) {
279
- offset . top = - findDOMNode ( this . refs . widget ) . offsetHeight - findDOMNode ( this ) . clientHeight - 2 ;
279
+ offset . top = - this . refs . widget . offsetHeight - this . clientHeight - 2 ;
280
280
classes . top = true ;
281
281
classes . bottom = false ;
282
282
classes [ "pull-right" ] = true ;
You can’t perform that action at this time.
0 commit comments