code: function forceRelayout(elem) {
    const originalStyle = elem.style.display;
    elem.style.display = 'none';
    elem.offsetHeight; // eslint-disable-line
    elem.style.display = originalStyle;
  }
docs: https://stackoverflow.com/a/3485654/3040605