- Issue created by @Shriaas
- @shriaas opened merge request.
- @shriaas opened merge request.
- Status changed to Fixed
about 2 years ago 3:13pm 7 February 2023 - Status changed to Fixed
about 2 years ago 3:22pm 7 February 2023
The module is giving the following console error:
drupal.js?v=9.4.7:16 Uncaught TypeError: Cannot read properties of undefined (reading 'textContent')
at HTMLFormElement.<anonymous> (admin-menu-levels.js?rp4uz6:14:78)
at Function.each (jquery.min.js?v=3.6.0:2:3003)
at S.fn.init.each (jquery.min.js?v=3.6.0:2:1481)
at Object.attach (admin-menu-levels.js?rp4uz6:12:37)
at drupal.js?v=9.4.7:27:24
at Array.forEach (<anonymous>)
at Drupal.attachBehaviors (drupal.js?v=9.4.7:24:34)
at drupal.init.js?v=9.4.7:29:12
at HTMLDocument.listener (drupal.init.js?v=9.4.7:17:7)
/admin/menu/main
The script is not able to find level_select.next().find(".chosen-single span")[0]
Use val()
function to get the value from select list instead.
Fixed
1.0
Code