Fix: When opening a filter, the focus is not put on the input search / filter input (#1731)
* Fixes #1718 * implemented review changes
This commit is contained in:
@ -31,6 +31,7 @@ export const FilterDropdownEntitySearchInput = () => {
|
|||||||
filterDefinitionUsedInDropdown &&
|
filterDefinitionUsedInDropdown &&
|
||||||
selectedOperandInDropdown && (
|
selectedOperandInDropdown && (
|
||||||
<DropdownMenuSearchInput
|
<DropdownMenuSearchInput
|
||||||
|
autoFocus
|
||||||
type="text"
|
type="text"
|
||||||
value={filterDropdownSearchInput}
|
value={filterDropdownSearchInput}
|
||||||
placeholder={filterDefinitionUsedInDropdown.label}
|
placeholder={filterDefinitionUsedInDropdown.label}
|
||||||
|
|||||||
@ -29,6 +29,7 @@ export const FilterDropdownNumberSearchInput = () => {
|
|||||||
filterDefinitionUsedInDropdown &&
|
filterDefinitionUsedInDropdown &&
|
||||||
selectedOperandInDropdown && (
|
selectedOperandInDropdown && (
|
||||||
<DropdownMenuSearchInput
|
<DropdownMenuSearchInput
|
||||||
|
autoFocus
|
||||||
type="number"
|
type="number"
|
||||||
placeholder={filterDefinitionUsedInDropdown.label}
|
placeholder={filterDefinitionUsedInDropdown.label}
|
||||||
onChange={(event: ChangeEvent<HTMLInputElement>) => {
|
onChange={(event: ChangeEvent<HTMLInputElement>) => {
|
||||||
|
|||||||
@ -39,6 +39,7 @@ export const FilterDropdownTextSearchInput = () => {
|
|||||||
filterDefinitionUsedInDropdown &&
|
filterDefinitionUsedInDropdown &&
|
||||||
selectedOperandInDropdown && (
|
selectedOperandInDropdown && (
|
||||||
<DropdownMenuSearchInput
|
<DropdownMenuSearchInput
|
||||||
|
autoFocus
|
||||||
type="text"
|
type="text"
|
||||||
placeholder={filterDefinitionUsedInDropdown.label}
|
placeholder={filterDefinitionUsedInDropdown.label}
|
||||||
value={filterCurrentlyEdited?.value ?? filterDropdownSearchInput}
|
value={filterCurrentlyEdited?.value ?? filterDropdownSearchInput}
|
||||||
|
|||||||
Reference in New Issue
Block a user