TWebToast issues

Hi,

Next issues concerning TWebToast.

The project for repro steps in attachment.

toast.zip (1.7 MB)

Steps to repro:

Set 1:

  1. Click the button "Set and show toast first time"
    the toast is showing with header and body "First time"
  2. Click the button "Set and show toast second time"
    the toast is showing with header and body "First time", why should be "Second time" ???

Set 2:

  1. Click the button "Set and show toast first time"
    the toast is showing with header and body "First time"
  2. Close the toast via cross
  3. Click the button "Set and show toast first time"
    You got an error "List index 0 out of bounds"
    When the toast is hidden via autohide ... the items is not deleted.
    BTW ... if the item was deleted why I still see this toast tag on the element.

    should be deleted too.

Set 3:
The same situation like in set 2 when I clear all items ... the items disappear from the items list but on the browser elements the toast div is exists ... why ???

  1. Click the button "Set and show toast first time"
    the toast is showing with header and body "First time"
  2. Click the button "Clear the toast items"
    After that the Items list is empty but I still see the toast div in the elements.

@brunofierens any news about that?

I will look into it (as always) upon return in the office next week

Ok ... have a nice weekend :slight_smile:

  1. We have applied an improvement to let a toast use the new property settings when it is reshown
  2. We added an AutoDelete property to have the item deleted from the collection when it is closed
  3. We did the improvement to remove the toast HTML when it is hidden or closed

These improvements will be in the next update

Ok ... thank you ... will tested new version.

After testing version 2.8.3.0 is better but wen you set the AutoDelete the element from generated htm is not deleted that we have a little mess in the html body.

Do you have more details? Step by step instruction how to reproduce?

You're welcome

toast2.zip (1.6 MB)

Repro:

  1. Click first button, wait for hide or click cross and the element toast still exists in body
  2. Reload app
  3. Click second button wait for hide ... and the same toast element still exists.

In both cases the toast element should be deleted from html body.

We applied a further improvement that will be in the next update