Remove onFocus

Has no adverse effects so far, fingers crossed
This commit is contained in:
CuriousCorrelation authored and Tom Moor committed 2022-07-17 12:22:24 +01:00
1 parent 61d4158d8c
commit 1cf83da73f
1 file changed
+1 -3
+1 -3
View File
@@ -82,8 +82,6 @@ const PaginatedDropdown = ({
setFilteredData(options);
}, [options, selectedLabel]);
const handleOnFocus = () => {};
return (
<Wrapper>
<MenuButton {...menu}>
@@ -94,7 +92,7 @@ const PaginatedDropdown = ({
)}
</MenuButton>
<ContextMenu aria-label={defaultLabel} {...menu}>
<StyledInputSearch onChange={handleFilter} onFocus={handleOnFocus} />
<StyledInputSearch onChange={handleFilter} />
<br />
{/* A bit hacky but this creates just enough space for search box.
Now absolute position works without first element getting stuck behind it.