hope someone can help, I have a jQuery ui accordion working OK, but I cannot get any options I set to work. I’m not using modules for this, adding jQuery UI in my library, and the accordion itself works so I know all scripts are loading OK. My library file has:
ui-accordion: version: 1.x js: js/site/min/jqui-accordion-min.js: {} dependencies: - core/drupal - core/drupalSettings - core/jquery - core/jquery.ui.accordion
The library is then attached in a template file. My jqui-accordion-min.js
has:
jQuery(document).ready(function() { jQuery( "#accordion" ).accordion( { autoHeight: "false" } ); });
I’ve tried other options too, including heightStyle: "content"
.
Is there something wrong with my jQuery, or do I need to load something else?