@triptease/tt-navbar 0.0.22 → 0.0.23

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.22
2
+ * @triptease/tt-navbar v0.0.23
3
3
  */
4
4
 
5
5
  // src/urlMappings.ts
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent tt-navbar following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "tt-navbar",
6
- "version": "0.0.22",
6
+ "version": "0.0.23",
7
7
  "type": "module",
8
8
  "main": "dist/src/index.js",
9
9
  "module": "dist/src/index.js",
package/src/TtNavbar.ts CHANGED
@@ -344,7 +344,7 @@ export class TtNavbar extends LitElement {
344
344
  ${this.clients.length > 1 ? html`
345
345
  <tt-combobox
346
346
  .openUpward=${true}
347
- .value=${this.clientKey}
347
+ .value=${this.clientKey ? [this.clientKey] : []}
348
348
  .onChange=${this.onClientChange}
349
349
  >
350
350
  ${this.clients.map((client) => html`
@@ -40,7 +40,7 @@ const Template: Story<ArgTypes> = ({
40
40
  <tt-navbar
41
41
  client-key=${clientKey}
42
42
  campaign-manager-url=${campaignManagerUrl}
43
- .clients=${clients}
43
+ clients=${JSON.stringify(clients)}
44
44
  >
45
45
  </tt-navbar>
46
46
  </div>
@@ -127,6 +127,7 @@ describe('TtNavbar', () => {
127
127
 
128
128
  expect(combobox).to.exist;
129
129
  expect(singleClientName).to.not.exist;
130
+ expect(combobox?.value).to.deep.equal([CLIENT_KEY]);
130
131
  });
131
132
 
132
133
  it('should render the client name when only one client is provided', async () => {