This repository was archived by the owner on Dec 5, 2024. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11{
22  "name" : " react-popper" 
3-   "version" : " 0.9.5 " 
3+   "version" : " 0.10.0 " 
44  "description" : " React wrapper around PopperJS." 
55  "license" : " MIT" 
66  "author" : 
" Travis Arnold <[email protected] > (http://souporserious.com)" ,
 
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class Popper extends Component {
1818    innerRef : PropTypes . func , 
1919    placement : PropTypes . oneOf ( placements ) , 
2020    eventsEnabled : PropTypes . bool , 
21+     positionFixed : PropTypes . bool , 
2122    modifiers : PropTypes . object , 
2223    children : PropTypes . oneOfType ( [ PropTypes . node ,  PropTypes . func ] ) , 
2324    target : PropTypes . oneOfType ( [ 
@@ -35,6 +36,7 @@ class Popper extends Component {
3536    component : 'div' , 
3637    placement : 'bottom' , 
3738    eventsEnabled : true , 
39+     positionFixed : false , 
3840    modifiers : { } , 
3941  } 
4042
@@ -112,7 +114,7 @@ class Popper extends Component {
112114  } 
113115
114116  _createPopper ( )  { 
115-     const  {  placement,  eventsEnabled }  =  this . props 
117+     const  {  placement,  eventsEnabled,  positionFixed  }  =  this . props 
116118    const  modifiers  =  { 
117119      ...this . props . modifiers , 
118120      applyStyle : {  enabled : false  } , 
@@ -126,6 +128,7 @@ class Popper extends Component {
126128    } 
127129    this . _popper  =  new  PopperJS ( this . _getTargetNode ( ) ,  this . _popperNode ,  { 
128130      placement, 
131+       positionFixed, 
129132      eventsEnabled, 
130133      modifiers, 
131134    } ) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments