Hi, I'm using this great lib in a Drupal 8 project; all works fine except when I'm using a plugin (eg. datepicker).
Since Drupal uses jQuery in a no-conflict mode other scripts need to be wrapped with:
Note: Since Drupal uses jQuery.noConflict() and only loads JavaScript files when required, to use jQuery and the $ shortcode for jQuery you must include jQuery and Drupal as dependencies in the library definition in your MODULE.libraries.yml and add a wrapper around your function.
I saw you wrap the main script but not the plugins. Are there some issues on do this?
If no and you agree I can made a patch.
Hi, I'm using this great lib in a Drupal 8 project; all works fine except when I'm using a plugin (eg. datepicker). Since Drupal uses jQuery in a no-conflict mode other scripts need to be wrapped with:
From official documentation (https://www.drupal.org/docs/8/api/javascript-api/javascript-api-overview):
I saw you wrap the main script but not the plugins. Are there some issues on do this? If no and you agree I can made a patch.