Fixed Form not cleared after posting report

shqawe

Member
Affected version
2.3
After posting report successfully if you click the report button again you will see the message report still there and not cleared.

Some quick solutions i was tested it:

First solution:
I change data-skip-overlay-redirect in report_create template to false to refresh the page and clear form.

Second solution:

I create new js file with this code and i inject it to helper_js_global template:

JavaScript:
((window, document) => {
    "use strict";

    XF.on(document, 'ajax-submit:response', form => {
        if (form.data.status == 'ok') {
            form.target.reset();
        }
    })
})(window, document);
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.3).

Change log:
Do not cache report overlays
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom