File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
examples/react/filters/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,9 @@ function App() {
105
105
return (
106
106
< div className = "p-2" >
107
107
< div >
108
- < input
108
+ < DebouncedInput
109
109
value = { globalFilter ?? '' }
110
- onChange = { e => setGlobalFilter ( e . target . value ) }
110
+ onChange = { value => setGlobalFilter ( String ( value ) ) }
111
111
className = "p-2 font-lg shadow border border-block"
112
112
placeholder = "Search all columns..."
113
113
/>
@@ -251,7 +251,7 @@ function DebouncedInput({
251
251
value : string | number
252
252
onChange : ( value : string | number ) => void
253
253
debounce ?: number
254
- } & React . InputHTMLAttributes < HTMLInputElement > ) {
254
+ } & Omit < React . InputHTMLAttributes < HTMLInputElement > , 'onChange' > ) {
255
255
const [ value , setValue ] = React . useState ( initialValue )
256
256
257
257
React . useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments