hello iI think this also would help ,in mi case i used this:
$(this).trigger('input');
// input for @ui.input, @ui.textarea
// change for @ui.checkbox, @ui.radio, @ui.select
// click for @ui.responsiveSwitchers
// input for @ui.input, @ui.textarea // change for @ui.checkbox, @ui.radio, @ui.select // click for @ui.responsiveSwitchers
This worked for me since I'm working on a text field. Now the save button goes green