Skip to content

Commit 3332ece

Browse files
committed
refactor: remove unnecessary code
1 parent b1506a7 commit 3332ece

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/react/expanding/src/main.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ function IndeterminateCheckbox({
321321
if (typeof indeterminate === 'boolean') {
322322
ref.current.indeterminate = !rest.checked && indeterminate
323323
}
324-
}, [ref, indeterminate])
324+
}, [indeterminate])
325325

326326
return (
327327
<input

examples/react/row-selection/src/main.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { HTMLAttributes, HTMLProps } from 'react'
1+
import React, { HTMLProps } from 'react'
22
import ReactDOM from 'react-dom/client'
33

44
import './index.css'
@@ -348,7 +348,7 @@ function IndeterminateCheckbox({
348348
if (typeof indeterminate === 'boolean') {
349349
ref.current.indeterminate = !rest.checked && indeterminate
350350
}
351-
}, [ref, indeterminate])
351+
}, [indeterminate])
352352

353353
return (
354354
<input

0 commit comments

Comments
 (0)