Skip to content

Fixed a few bugs and applied some optimizations to ValueSelect#483

Open
jschick04 wants to merge 2 commits intomainfrom
jschick/optimize_dropdowns
Open

Fixed a few bugs and applied some optimizations to ValueSelect#483
jschick04 wants to merge 2 commits intomainfrom
jschick/optimize_dropdowns

Conversation

@jschick04
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings April 18, 2026 17:13
@jschick04 jschick04 requested a review from a team as a code owner April 18, 2026 17:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the ValueSelect Blazor component and its supporting JS to fix selection/highlight behavior, improve keyboard interaction, and reduce DOM/event-handler overhead.

Changes:

  • Refactors item selection/highlighting to be derived from parent state (instead of cached per-item fields) and adds a ClearAll() pathway.
  • Improves dropdown JS behavior (query selectors for selected/highlighted items, correct style reset, and abortable event listeners with an explicit unregister).
  • Updates ARIA attributes for combobox/listbox semantics (moving aria-expanded handling to the input, adding aria-multiselectable, etc.).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/EventLogExpert/wwwroot/js/dropdowns.js Adds abortable dropdown event wiring/unwiring and streamlines scroll-to-selected/highlighted logic.
src/EventLogExpert/Shared/Components/ValueSelectItem.razor.cs Removes cached selection flag; selection/highlight are now computed from parent state; updates ClearItem behavior.
src/EventLogExpert/Shared/Components/ValueSelectItem.razor Adjusts ARIA and highlighted attribute rendering to match new JS selectors and accessibility intent.
src/EventLogExpert/Shared/Components/ValueSelect.razor.cs Adds IAsyncDisposable cleanup, ClearAll(), selection state syncing, and keyboard/navigation fixes.
src/EventLogExpert/Shared/Components/ValueSelect.razor Updates combobox/listbox ARIA attributes and multiselect semantics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/EventLogExpert/Shared/Components/ValueSelect.razor Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants