Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle empty string values on reading parent node style
When reading the parent node's styles during resize, we can sometimes encounter styles with the value ''. This can happen if the node is removed from the DOM very quickly after mount (window.getComputedStyle returns '' for elements not attached to DOM). This was not handled by null-coalescing, so we need to switch to use falsy check instead. This appears to be the same issue from bvaughn/react-virtualized#150. Tests are not included - it looks like our JSDOM version doesn't support empty string values for css properties, as far as I can tell (See jsdom/jsdom#2504 and jsdom/cssstyle#165)
- Loading branch information