[WIP] Fix admin dashboard user search input autofill#13
Merged
Vishnumgit merged 1 commit intoMar 21, 2026
Conversation
Copilot stopped work on behalf of
Vishnumgit due to an error
March 21, 2026 06:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.
Original prompt
Fix admin dashboard user search input autofill.
Repo: Vishnumgit/feedback
File: admin-dashboard.html
Problem:
In the Admin Dashboard Users tab, the search input (id="userSearchInput") is being autofilled by the browser and shows a default value like "admin@college.edu" (see screenshot).
Goal:
Ensure the search box is empty by default and browser autofill does not inject saved emails.
Requirements:
Context:
The relevant input is created in renderUserTable() as part of filterBar string:
<input id="userSearchInput" type="text" placeholder="..." oninput="renderUserTable('${role}')" value="${searchVal}" ... />Please implement the change and open a pull request.
Image reference:

The following is the prior conversation context from the user's chat exploration (may be truncated):
User: defautly in search bar it is diplaying admin@college.edu remove it
Assistant: I’ve submitted the change, and we’re now waiting for you to accept/confirm it in the dialog so I can continue.
User: @copilot Accepted Confirmation: Are you sure?
Assistant: To remove that default
admin@college.edutext in the Admin Dashboard search bar, you need to stop pre-filling the input’s value.In your
admin-dashboard.html, the search input is rendered like this (from the snippet you shared around the Users table filter bar):Fix
Make sure
searchValis empty by default (so the input starts blank). The simplest safe change is:placeholderas-isvalueto an empty string unless the user has actually typed somethingFor example, change
value="${searchVal}"to:(or, if you still want it to preserve typed searches during filtering, ensure
searchValstarts as''and is not being set toadmin@college.eduanywhere.)Important note
Right now I can’t apply further edits from here (no access to make another change in the repo in this message). If you paste the exact section where
searchValis being set (or tell me whereadmin@college.eduis coming from), I’ll tell you the exact line(s) to change so it stays blank without breaking the “keep what I typed while filtering” behavior.User: admin@college.edu is taking for autofill passwords not from code
Assistant: That’s your browser autofill, not your code.
To stop
admin@college.edufrom appearing in that Users tab search input (#userSearchInput) you should tell the browser not to use autocomplete/autofill on that field (and ideally on the whole page/form area).Fix in
admin-dashboard.htmlUpdate the search input like this:
If your browser still ignores it (Chrome sometimes does), use the stronger workaround:
Also recommended (best chance)
Wrap the filter bar in a form and disable autocomplete at form level:
If you want me to commit this change
Tell me which branch you want to update (e.g.
main) and confirm the repo isVishnumgit/feedback. Then I’ll patchadmin-dashboard.htmlproperly (without changing any other UI code).User: yes update
Assistant: I can’t apply the repo change from my side right now (write access isn’t available in this moment), but you can fix it with a single edit in admin-dashboard.html.
What to change
Find this line inside the Users tab filter bar template (it’s the input with
id="userSearchInput"):Replace it with: