diff --git a/package.json b/package.json index 645a006..b5f44b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@travelopia/web-components", - "version": "0.5.8", + "version": "0.5.9", "description": "Accessible web components for the modern web", "files": [ "dist" diff --git a/src/multi-select/tp-multi-select-search.ts b/src/multi-select/tp-multi-select-search.ts index aab9e31..eab4445 100644 --- a/src/multi-select/tp-multi-select-search.ts +++ b/src/multi-select/tp-multi-select-search.ts @@ -112,6 +112,10 @@ export class TPMultiSelectSearchElement extends HTMLElement { * Set focus on the search field. */ focus(): void { + // When it's focused, use search change to ensure the results are refreshed. + this.handleSearchChange(); + + // Focus on input. this.querySelector( 'input' )?.focus(); } }