Skip to content

Commit

Permalink
fix: checkbox button focus by disabled (#5529)
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Nov 6, 2023
2 parents 3a4fa51 + ddd94c7 commit e62290a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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}
_accessKey={this.state._accessKey}
_alert={this.state._alert}
_disabled={this.state._disabled}
Expand Down

0 comments on commit e62290a

Please sign in to comment.