2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
8 (function ($, Drupal) {
9 Drupal.behaviors.detailsAria = {
10 attach: function attach() {
11 $('body').once('detailsAria').on('click.detailsAria', 'summary', function (event) {
12 var $summary = $(event.currentTarget);
13 var open = $(event.currentTarget.parentNode).attr('open') === 'open' ? 'false' : 'true';
16 'aria-expanded': open,