Skip to content

Commit

Permalink
fix: checkbox button focus by disabled (#5528)
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio authored Nov 6, 2023
2 parents a9f232d + bdced73 commit 0c2d17f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class KolInputCheckbox implements API {
}}
data-role={this.state._variant === 'button' ? 'button' : undefined}
onKeyPress={this.state._variant === 'button' ? this.onChange : undefined}
tabIndex={this.state._variant === 'button' ? 0 : undefined}
tabIndex={this.state._variant === 'button' && !this.state._disabled ? 0 : undefined}
_alert={this.state._alert}
_disabled={this.state._disabled}
_error={this.state._error}
Expand Down

0 comments on commit 0c2d17f

Please sign in to comment.