Closed emiliemarchand closed 2 years ago
Stale issue message
Why is this closed? It's not fixed.
having the same issue, the doc says closeOnClick
but you used : close-on-click
i tried both still does not work.
If you need to include a button within the notification for executing further actions, but find that the notification closes upon clicking the button despite setting close-on-click: false, applying event.stopPropagation() within the button's event handler function can prevent this behavior.
Describe the bug Setting the option "closeOnClick: false" doesn't work when triggering a notification via the API.
To Reproduce
Expected behavior The notification should not close.
Desktop (please complete the following information):
Additional context The only way I could make it work is by setting the option as a prop on the html tag, which is quite inconvenient because I do not want all notifications to behave this way.
<notifications :close-on-click="false" position="top center" width="100%"></notifications>