Skip to content

feat: uses form API to manage feedback submit submit button state

  • set 'disabled' via the button's attributes array (NOTE: using the '#disabled' property on the element breaks '#ajax'),
  • uses '#states' property to enable/disable the button when the field is/is not filled/checked,
  • removes corresponding logic from js/admin_feedback.js
  • relocates cursor styling for disabled submit button to css from js

The message field has the same name whether it's a textarea or a set of radios, so we have to set the key of the states array to 'checked' or 'filled' dynamically.

Closes #3525479

Merge request reports

Loading