Skip to content

Commit

Permalink
work on filtering mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
barbalex committed Jan 23, 2025
1 parent 1390841 commit 6ac4ea1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/shared/FormTitle/FilterInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export const FilterInput = memo(
)
const [keyPressed, setKeyPressed] = useState(null)
const [doSet, setDoSet] = useState(false)
const [coarsePointer, setCoarsePointer] = useState(null)
const onKeyDown = useCallback(
(e) => {
// issue: (https://github.com/barbalex/apf2/issues/710)
Expand All @@ -113,7 +112,7 @@ export const FilterInput = memo(
setDoSet(doSet)
if (!doSet) return

setNodeLabelFilter(value)
setTimeout(() => setNodeLabelFilter(value), 0)
},
[setNodeLabelFilter],
)
Expand All @@ -132,7 +131,7 @@ export const FilterInput = memo(
<Container show={filterInputIsVisible.toString()}>
<StyledTextField
inputRef={inputRef}
label={`Filter (coarse: ${isCoarsePointer},key: ${keyPressed}, value: ${value}, filter: ${filterValue}, set: ${doSet})`}
label={`Filter (coarse: ${isCoarsePointer}, key: ${keyPressed}, value: ${value}, filter: ${filterValue}, set: ${doSet})`}
variant="standard"
fullWidth
value={value}
Expand Down

0 comments on commit 6ac4ea1

Please sign in to comment.