@fluid-topics/ft-switch 0.1.18 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -117,6 +117,9 @@ export class FtSwitch extends FtLitElement {
117
117
  this.selectedOption = this.options.find(option => option.selected);
118
118
  }
119
119
  }
120
+ focus() {
121
+ this.ftSwitchDiv.focus();
122
+ }
120
123
  updateOptions() {
121
124
  this.options.forEach(option => {
122
125
  option.selected = option == this.selectedOption;
@@ -130,4 +133,7 @@ __decorate([
130
133
  __decorate([
131
134
  state()
132
135
  ], FtSwitch.prototype, "selectedOption", void 0);
136
+ __decorate([
137
+ query(".ft-switch")
138
+ ], FtSwitch.prototype, "ftSwitchDiv", void 0);
133
139
  //# sourceMappingURL=ft-switch.js.map