Dirty plugin compatibility

hello,
I’ve my select2 correctly working. Now I’ve introduced jquery dirty plugin in my app:

$("#machineForm").dirty({
                preventLeaving: true
            });

after this, select2 are correctly working only if I have some selected options (using multiple here), otherwise if the field is empty I need to input at least the first letter to work correctly… I need it to be working also with click (as it was before dirty plugin).
Any hint?

Thanks a lot

I can’t find a jQuery “dirty” plugin that has the API signature you described above, so I’m not sure how that plugin behaves. Can you point me to the documentation for that plugin?