fix some firefox mobile issue

This commit is contained in:
Anton Tranelis 2024-01-30 20:44:37 +01:00
parent c483236892
commit 3595818a2d

View File

@ -36,9 +36,7 @@ export const SearchControl = ({ clusterRef }) => {
const filterTags = useFilterTags();
useMapEvents({
popupopen: (e) => {
console.log(e);
popupopen: () => {
setPopupOpen(true);
},
popupclose: () => {
@ -76,7 +74,7 @@ export const SearchControl = ({ clusterRef }) => {
const searchInput = useRef<HTMLInputElement>(null);
return (<>
{!(windowDimensions.height < 500 && popupOpen) &&
{!(windowDimensions.height < 500 && popupOpen && hideSuggestions) &&
<div className='tw-w-[calc(100vw-2rem)] tw-max-w-[22rem] '>
<div className='flex tw-flex-row'>
<input type="text" placeholder="search ..." autoComplete="off" value={value} className="tw-input tw-input-bordered tw-w-full tw-shadow-xl tw-rounded-lg tw-mr-2"