Skip to content

Commit

Permalink
Fix #4402: Checkbox/Radio click label (#4406)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored May 16, 2023
1 parent b51a3b8 commit fd98078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/lib/checkbox/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const Checkbox = React.memo(

return (
<>
<div ref={elementRef} id={props.id} className={className} style={props.style} {...otherProps} onPointerUp={onClick} onContextMenu={props.onContextMenu} onMouseDown={props.onMouseDown}>
<div ref={elementRef} id={props.id} className={className} style={props.style} {...otherProps} onClick={onClick} onContextMenu={props.onContextMenu} onMouseDown={props.onMouseDown}>
<div className="p-hidden-accessible">
<input
ref={inputRef}
Expand Down
2 changes: 1 addition & 1 deletion components/lib/radiobutton/RadioButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const RadioButton = React.memo(

return (
<>
<div ref={elementRef} id={props.id} className={className} style={props.style} {...otherProps} onPointerUp={onClick}>
<div ref={elementRef} id={props.id} className={className} style={props.style} {...otherProps} onClick={onClick}>
<div className="p-hidden-accessible">
<input
ref={inputRef}
Expand Down

0 comments on commit fd98078

Please sign in to comment.