Skip to content

Commit

Permalink
issue #411: fixing implementation of slider and checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
gullerya committed Oct 28, 2020
1 parent 19427b1 commit 70db19d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/checkbox/src/vwc-checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ export class VWCCheckbox extends MWCCheckbox {
await super.firstUpdated();
handleAutofocus(this);
}

focus(): void {
super.focus();
this.formElement.focus();
}
}
5 changes: 5 additions & 0 deletions components/slider/src/vwc-slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ export class VWCSlider extends MWCSlider {
this.pinMarkerText = this.value?.toLocaleString();
handleAutofocus(this);
}

focus(): void {
super.focus();
this.formElement.focus();
}
}

0 comments on commit 70db19d

Please sign in to comment.