Skip to content

Commit

Permalink
add event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
jindaljyoti committed Nov 18, 2024
1 parent 2212cc8 commit 3f49aaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const TogglePrimitiveRoot = ({children,className='',defaultPressed,pressed,onCha
onChange(updatedPressed)
}

return <span className={className}{...props}>{children}</span>
return <span className={className} onClick={handlePressed} {...props}>{children}</span>

};

Expand Down

0 comments on commit 3f49aaf

Please sign in to comment.