Module breaks status messages added using JS

Created on 5 May 2024, 7 months ago
Updated 19 September 2024, 2 months ago

Problem/Motivation

Status messages added using JS are not shown as toasts. Instead, the core JS fails because the messages wrapper element is missing from the page.

Steps to reproduce

Run the following in the console:

const messages = new Drupal.Message();
messages.add('test message', {type: 'status'});

Proposed resolution

Override some JS function to make sure messages added in JS are rendered as toasts.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024