Explorar o código

Merge pull request #140 from smiclea/fix-dropdown

Fix issue with dropdown list position
Dorin Paslaru %!s(int64=8) %!d(string=hai) anos
pai
achega
85b62ed6ff
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/components/molecules/Dropdown/Dropdown.jsx

+ 4 - 0
src/components/molecules/Dropdown/Dropdown.jsx

@@ -119,6 +119,10 @@ class Dropdown extends React.Component {
     this.buttonRect = this.buttonRef.getBoundingClientRect()
     this.buttonRect = this.buttonRef.getBoundingClientRect()
   }
   }
 
 
+  componentWillUpdate() {
+    this.buttonRect = this.buttonRef.getBoundingClientRect()
+  }
+
   componentDidUpdate() {
   componentDidUpdate() {
     this.updateListPosition()
     this.updateListPosition()
   }
   }