Toast dark and not closable (z-index)

When I show a toastmessage from a form that is overlaying the back, the toast becomes dark and the CloseButton can not be clicked on, as the z-index of the toast container is only 2.

The z-index is set in a hardcoded way in TToast.UpdatePosition.

Is there a way to set this or include an extra poperty in the next version ?

For now I solved it by adding the followign code after the Show statement:


  //Below is a hack as TMS Web core 2.7.0.1 had the container of the toast with a z-index = 2
  //(procedure TToast.UpdatePosition). This caused the toast be faded when shown from within a modal form
  asm
    var toast = document.querySelector('.toast');
    if (toast) {
      var parentDiv = toast.parentElement;
      parentDiv.style.zIndex = '999999';
    }
  end;

Thank you

Thanks for reporting.
We applied a fix that will be included in the next release.