Skip to content

Feature request - Stackable Toast messages #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gertvdkolk opened this issue Jul 22, 2020 · 5 comments
Open

Feature request - Stackable Toast messages #37

gertvdkolk opened this issue Jul 22, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@gertvdkolk
Copy link

Hi!

First of all, thank you for making this component. It's very convenient.
I just installed it and it works great out of the box.

What I noticed is that whenever I fire a second toast message, it reuses the original toast message. Is this correct?
Can this perhaps made to be so that multiple messages can be shown?
For example, like in this codepen: https://codepen.io/osublake/pen/YyLZKV

Thank you!

@calintamas
Copy link
Owner

@gertvdkolk Hi, glad you like it :)

The behavior I wanted to achieve was "hide the toast, then make it visible again with the new message". I wasn't really part of the plan to have stackable toast views, so from this point of view, it works as intended.

If you want to pick it up, we can discuss about developing this additional presentation mechanism.

@calintamas calintamas added the enhancement New feature or request label Oct 1, 2020
@ghost ghost deleted a comment from arnnis Oct 20, 2020
@francisleigh
Copy link

Yeah this would be great!

@ivan-zeller
Copy link

ivan-zeller commented Oct 10, 2022

I've already fixed it!
#410

@ArturoTorresMartinez
Copy link

Any news about this one? :D

@bohdan145
Copy link

To show another toast I do this

Toast.hide();
setTimeout(() => {
  Toast.show({
    text1: "Error",
    text2: this.text,
    type: "error",
    position: "bottom",
  });
}, 400);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants