Skip to content

Commit f4c17c7

Browse files
authored
fix: Filter text field in data browser partly looses focus when selecting in drop-down element by hitting enter key to apply filter (#2993)
1 parent a20f8e5 commit f4c17c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dashboard/Data/Browser/DataBrowser.react.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ export default class DataBrowser extends React.Component {
426426
return;
427427
}
428428

429-
// Check if the event target is an input or textarea
429+
// Check if the event target is an input, textarea, or select element
430430
const target = e.target;
431-
const isInputElement = target && (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA');
431+
const isInputElement = target && (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.tagName === 'SELECT');
432432

433-
// Ignore all keyboard events when focus is on input/textarea elements
434-
// This allows normal text editing behavior in filter inputs
433+
// Ignore all keyboard events when focus is on input/textarea/select elements
434+
// This allows normal text editing behavior in filter inputs and dropdown navigation
435435
if (isInputElement) {
436436
return;
437437
}

0 commit comments

Comments
 (0)