pg_layout/app/javascript/controllers/pg_form_controller.js
Function connect
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
connect () {
this.element.querySelectorAll('.form-select, .form-control').forEach((slct) => {
slct.addEventListener('change', (e) => {
if (e.target.value) {
slct.classList.remove('is-invalid')