ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

Message Toast opening only every secound time

Open felix9607 opened this issue 6 years ago • 1 comments

Describe the bug The MessageToast opens only every secound time. It seems like it's not correctly changing its state. Show() method is called inside an Promise catch method, might have sth to do with that

To reproduce Steps to reproduce the behavior:

  1. Use VueJS framework. 2.
 let toast = document.getElementById('msgToast')
    console.log(toast._state.open) // false
    toast.show() // not showing up
    console.log(toast._state.open) // true
    toast.show() // showing up correctly

Expected behavior Show up on every method call

Context

  • Browser: Chrome, Safari etc.

felix9607 avatar Jun 16 '20 08:06 felix9607

Hello @felix9607

I was not able to reproduce the issue on my side. I tested it out just like you explained VueJS + UI5 Web Components, inside the catch of a Promise: image

Versions: VueJS: 2.5.21 UI5 Web Components: Latest next release(0.0.0-1b568f22b)

If your still experience the issue, please create an isolated example via CodeSandBox and reopen the issue

fifoosid avatar Jun 16 '20 09:06 fifoosid