Problem/Motivation
Drupal has a JS Messages API to display messages from JavaScript - https://www.drupal.org/docs/drupal-apis/javascript-api/messages-api and it works well on the most of Drupal themes.
But with the Flexistyle theme, it doesn't work if no messages from the backend (generated by PHP) present on the website.
So, if a page already has a message, generated by PHP, new messages from JS appear correctly.
But if no messages from PHP side, no message appear after calling a JS Drupal Messages API.
Steps to reproduce
Test command to type in the Browser Console:
(new Drupal.Message()).add('Foo');
(new Drupal.Message()).add('Bar', {type: 'error'});
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
murzI created a fix for this, please review.
Comment #5
murz@anoopsingh92, could you please review and merge this, and release a new version with the fix? Thank you!
Comment #6
murzWe use your theme in the commercetools demo here https://www.drupal.org/project/commercetools_online_demo so you can check the dropdown issue right there, just install the online demo, open the catalog page, and hover on the "Cart" block at the top-right.
Comment #8
anoopsingh92