programandoarg/pg_rails

View on GitHub
pg_layout/app/javascript/controllers/pg_form_controller.js

Summary

Maintainability
A
0 mins
Test Coverage

Function connect has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

  connect () {
    this.element.querySelectorAll('.form-select, .form-control').forEach((slct) => {
      slct.addEventListener('change', (e) => {
        if (e.target.value) {
          slct.classList.remove('is-invalid')
Severity: Minor
Found in pg_layout/app/javascript/controllers/pg_form_controller.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status