Skip to content

Commit

Permalink
fix: checkbox button focus by disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Nov 6, 2023
1 parent 4e1f275 commit bdced73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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 bdced73

Please sign in to comment.