Skip to content

Commit dbe5a7d

Browse files
committed
Upstream fix - ToggleButton: remove role="button" from label
react-bootstrap/react-bootstrap@54bcbfa
1 parent 6e68167 commit dbe5a7d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/bootstrap/src/Button.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ const Button: BsPrefixRefForwardingComponent<"button", ButtonProps> = (p: Button
3838
return (
3939
<Dynamic
4040
component={tagName}
41-
{...props}
4241
{...buttonProps}
42+
{...props}
4343
className={classNames(
4444
local.className,
4545
prefix,

packages/bootstrap/src/ToggleButton.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const ToggleButton = (p: ToggleButtonProps) => {
5151
className={classNames(local.className, local.disabled && "disabled")}
5252
// @ts-ignore
5353
type={undefined}
54+
role={undefined}
5455
as="label"
5556
htmlFor={local.id}
5657
>

0 commit comments

Comments
 (0)