Skip to content

Commit

Permalink
fix(checkbox): delegate focus in checkbox (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
muratcorlu authored Apr 5, 2023
1 parent c1eca71 commit 66ff731
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/components/checkbox-group/checkbox/bl-checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default class BlCheckbox extends FormControlMixin(LitElement) {
static get styles(): CSSResultGroup {
return [style];
}
static shadowRootOptions = {...LitElement.shadowRootOptions, delegatesFocus: true};

/**
* Sets the checked state for checkbox
Expand Down
1 change: 0 additions & 1 deletion src/components/input/bl-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default class BlInput extends FormControlMixin(LitElement) {
static get styles(): CSSResultGroup {
return [style];
}

static shadowRootOptions = {...LitElement.shadowRootOptions, delegatesFocus: true};

static formControlValidators = innerInputValidators;
Expand Down
1 change: 0 additions & 1 deletion src/components/select/bl-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default class BlSelect<ValueType extends FormValue = string> extends Form
static get styles(): CSSResultGroup {
return [style];
}

static shadowRootOptions = {...LitElement.shadowRootOptions, delegatesFocus: true};

static formControlValidators = [requiredValidator];
Expand Down
1 change: 0 additions & 1 deletion src/components/textarea/bl-textarea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default class BlTextarea extends FormControlMixin(LitElement) {
static get styles(): CSSResultGroup {
return [style];
}

static shadowRootOptions = {...LitElement.shadowRootOptions, delegatesFocus: true};

static formControlValidators = textAreaValidators;
Expand Down

0 comments on commit 66ff731

Please sign in to comment.