Open Closed

Abp 10.3 MVC AuditLogs Clear btn #10613


User avatar
0
paul.harriman created

running into an issue /AuditLogs. if u enter text/numbers/dates the clear btn clears then. but not for dropdowns

⏺ Yes, the dropdown clear issue is an ABP OOTB bug. The original ABP index.js (lines 351-368 in the decompiled version) uses the exact same .val("") for the select elements — so even without our override, the dropdowns wouldn't clear.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Hi,

    Confirmed, the dropdowns on the AuditLogs Clear button don't refresh because LeptonX wraps the <select> with a custom UI that doesn't yet react to programmatic value changes.

    Until the next LeptonX patch is out, you can add this override on the page to reset the visible label manually:

    $(function () {
        $("#ClearFilterButton").on('click', function () {
            $("#HttpMethod, #HttpStatusCode, #HasException").each(function () {
                this.value = "";
                var wrapper = this.closest(".custom-select-wrapper");
                if (wrapper) {
                    var display = wrapper.querySelector(".custom-select-display span");
                    var selected = this.options[this.selectedIndex];
                    if (display && selected) {
                        display.textContent = selected.textContent;
                    }
                }
            });
        });
    });
    

    This runs after the built-in AuditLogs/index.js (which already clears the text fields and reloads the table) and works regardless of the LeptonX version you're on. Once we release the Volo.Abp.AuditLogging fix and LeptonX ships the matching patch, upgrading both packages and re-running abp install-libs will remove the need for this override.

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.