Skip to content

Commit

Permalink
fix: Only match with single alphanumeric keys in "Assign Testers" dro…
Browse files Browse the repository at this point in the history
…pdown search, ignore Tab (#1196)
  • Loading branch information
stalgiag authored Aug 19, 2024
1 parent 39033e6 commit a80b80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/TestQueue/AssignTesters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const AssignTesters = ({ me, testers, testPlanReport }) => {

const onKeyDown = event => {
const { key } = event;
if (key.match(/[0-9a-zA-Z]/)) {
if (key.length === 1 && key.match(/[a-zA-Z0-9]/)) {
const container = event.target.closest('[role=menu]');
const matchingMenuItem = Array.from(container.children).find(menuItem => {
return menuItem.innerText
Expand Down

0 comments on commit a80b80b

Please sign in to comment.