@triptease/tt-navbar 0.0.22 → 0.0.24

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.
package/dist/web/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.22
2
+ * @triptease/tt-navbar v0.0.24
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2109,6 +2109,13 @@ var TtNavbar = class extends i4 {
2109
2109
  this.setActiveState();
2110
2110
  }
2111
2111
  };
2112
+ this.handleClientChange = (e10) => {
2113
+ const combobox = e10.target;
2114
+ const selectedClientKey = combobox.value?.[0];
2115
+ if (selectedClientKey && this.onClientChange) {
2116
+ this.onClientChange(selectedClientKey);
2117
+ }
2118
+ };
2112
2119
  }
2113
2120
  firstUpdated() {
2114
2121
  this.setActiveState();
@@ -2279,8 +2286,8 @@ var TtNavbar = class extends i4 {
2279
2286
  ${this.clients.length > 1 ? x`
2280
2287
  <tt-combobox
2281
2288
  .openUpward=${true}
2282
- .value=${this.clientKey}
2283
- .onChange=${this.onClientChange}
2289
+ .value=${this.clientKey ? [this.clientKey] : []}
2290
+ @change=${this.handleClientChange}
2284
2291
  >
2285
2292
  ${this.clients.map((client) => x`
2286
2293
  <option slot="option" value=${client.clientKey}>