Remove select2-related code from app/assets/javascripts/dirty_submit/dirty_submit_form.js
In app/assets/javascripts/dirty_submit/dirty_submit_form.js#37
, we are binding a change.select2
event listeners to "dirty submittable forms". However, it doesn't look like any of the affected forms still contain select2
instances, potentially making this line of code effect-less.
Implementation plan
-
Once we have confirmed the event listener is never actually bound to any element, remove the line of code.
Edited by Paul Gascou-Vaillancourt