260706_01_ENH: DataTable 버그 수정 및 Date 관련 컴포넌트 추가

This commit is contained in:
2026-07-06 15:22:51 +09:00
parent 88043ecc34
commit e77fe4368a
13 changed files with 476 additions and 244 deletions

View File

@@ -22,15 +22,15 @@ export function usePreventClickOnDrag(thresholdPx = 6) {
}, [])
const wrapClick = React.useCallback(
(callback: () => void) => (event: React.MouseEvent) => {
if (state.current.dragging) {
event.preventDefault()
event.stopPropagation()
return
}
callback()
},
[],
(callback: () => void) => (event: React.MouseEvent) => {
if (state.current.dragging) {
event.preventDefault()
event.stopPropagation()
return
}
callback()
},
[],
)
return { onPointerDown, onPointerMove, onPointerUp, onPointerCancel: onPointerUp, wrapClick }