Skip to content

#1227 automatically convert remaining namespace text into a tag on blur#1231

Merged
rushk014 merged 1 commit into
neuvector:mainfrom
lsongsuse:bugfix
May 27, 2026
Merged

#1227 automatically convert remaining namespace text into a tag on blur#1231
rushk014 merged 1 commit into
neuvector:mainfrom
lsongsuse:bugfix

Conversation

@lsongsuse

Copy link
Copy Markdown
Contributor

Description

Fix #1227

Fixed an issue in the Advanced Filter dialog box where typed text in the Domains/Namespaces input field was ignored and omitted from the selectedDomains payload if the user clicked "Apply" without pressing Enter first.

Added a blur event listener to the input element that invokes an addOnBlur() handler, transforming input text into a tag.

Test

  1. Open the Vulnerabilities page -> Click the Advanced Filter to open the filter dialog box

  2. Type a namespace name (e.g., production) without pressing the Enter

  3. Click into another field or click the Apply button

  4. Expected behavior: The typed text (e.g. production) should convert into a tag inside the field

Additional Information

Tradeoff

Potential improvement

Screen.Recording.2026-05-24.at.8.56.27.PM.mov

@lsongsuse
lsongsuse requested a review from a team as a code owner May 25, 2026 04:09
@lsongsuse
lsongsuse requested a review from williamshen9999 May 25, 2026 04:09
@lsongsuse lsongsuse changed the title automatically convert remaining namespace text into a tag on blur #1227 automatically convert remaining namespace text into a tag on blur May 27, 2026

@rushk014 rushk014 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@rushk014
rushk014 merged commit ca01599 into neuvector:main May 27, 2026
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.

In the advanced filter, the namespace autocomplete should prevent the text without creating tag in the component

2 participants