MCPcopy Create free account
hub / github.com/bytebase/bytebase / handleInputChange

Function handleInputChange

frontend/src/react/components/MaxRowCountSelect.tsx:47–55  ·  view source on GitHub ↗
(e: React.ChangeEvent<HTMLInputElement>)

Source from the content-addressed store, hash-verified

45 };
46
47 const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
48 const rawValue = Number(e.target.value);
49 const clamped = minmax(
50 Number.isNaN(rawValue) ? 0 : rawValue,
51 first(rowCountOptions) ?? 1,
52 last(rowCountOptions) ?? 100000
53 );
54 onChange(clamped);
55 };
56
57 return (
58 <Popover open={open} onOpenChange={setOpen}>

Callers 1

AdvancedSearchFunction · 0.85

Calls 1

minmaxFunction · 0.90

Tested by

no test coverage detected