Allow altering of dropdown item template
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3558690. --> Reported by: [s_leu](https://www.drupal.org/user/1336864) Related to !182 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>With the current code, the only possibility to override the dropdown item markup is to duplicate the widget and the JS of this module which isn't very flexible.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Try to change the markup returned by <code>dropdownItemTemplate</code> of this module's <code>tagify.js</code></p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Dispatch an event from the mentioned method which will allow other code to subscribe. The subscribing code's library has to add its JS before the tagify/default library to do so. This can be done via hook_library_info_alter in the custom module adding the JS.</p>
issue