@fluid-topics/ft-search-saved-searches 1.2.49 → 1.2.51

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.
@@ -40,6 +40,9 @@ export declare class FtSearchSavedSearches extends FtSearchSavedSearches_base im
40
40
  private toFtSearchRequest;
41
41
  private toMetadataFilter;
42
42
  connectedCallback(): void;
43
+ private onFocusIn;
44
+ private onFocusOut;
45
+ disconnectedCallback(): void;
43
46
  private onLinkClick;
44
47
  protected update(changedProperties: PropertyValues): void;
45
48
  }
@@ -242,6 +242,19 @@ class FtSearchSavedSearches extends withI18n(FtSearchComponent) {
242
242
  connectedCallback() {
243
243
  super.connectedCallback();
244
244
  userAssetsActions.reloadMySearches();
245
+ this.addEventListener("focusin", this.onFocusIn);
246
+ this.addEventListener("focusout", this.onFocusOut);
247
+ }
248
+ onFocusIn(e) {
249
+ this.setAttribute("aria-current", "true");
250
+ }
251
+ onFocusOut(e) {
252
+ this.setAttribute("aria-current", "false");
253
+ }
254
+ disconnectedCallback() {
255
+ super.disconnectedCallback();
256
+ this.removeEventListener("focusin", this.onFocusIn);
257
+ this.removeEventListener("focusout", this.onFocusOut);
245
258
  }
246
259
  onLinkClick(e, ftSearchRequest) {
247
260
  var _a;