The issue turned out to be with the version of react-grid-layout. So updated the version from 1.3.4 to 1.5.2 and the issue is resolved.