(val: string)
| 43 | |
| 44 | const handleChange = (val: string) => { |
| 45 | setQuery(val); |
| 46 | onChange(val); |
| 47 | if (debounceRef.current) clearTimeout(debounceRef.current); |
| 48 | debounceRef.current = setTimeout(() => geocode(val), 300); |
| 49 | }; |
| 50 | |
| 51 | return ( |
| 52 | <div className="relative" ref={containerRef}> |
| 53 | <input |
no test coverage detected