Details
-
Bug
-
Resolution: Invalid
-
Major
-
None
-
12.10.5, 13.2-rc-1
-
None
-
Unknown
-
Description
Use the following code in a JSX:
var notification; for (i = 0; i < 10; i++) { if (i == 0) { notification = new XWiki.widgets.Notification('In progress', 'inprogress'); } else { notification.replace(new XWiki.widgets.Notification('Done', 'done')); } }
Expected result: Have only one notification displayed. Initial value In progress, then replaced by Done for 9 times.
Actual result: 9 Done notifications are displayed at the same time. Only the first replace works. See multipleNotifications.png