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.
1 Answer(s)
-
0
Hi,
Confirmed, the dropdowns on the
AuditLogsClear 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 theVolo.Abp.AuditLoggingfix and LeptonX ships the matching patch, upgrading both packages and re-runningabp install-libswill 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)
