From 610b0a09bb8221a1170234652c004addbd223480 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 21 Dec 2023 22:41:59 +0100 Subject: [PATCH] backport changes Signed-off-by: Jens Langhammer --- web/src/elements/forms/SearchSelect/ak-search-select.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/elements/forms/SearchSelect/ak-search-select.ts b/web/src/elements/forms/SearchSelect/ak-search-select.ts index bcb872f7c..4e1220289 100644 --- a/web/src/elements/forms/SearchSelect/ak-search-select.ts +++ b/web/src/elements/forms/SearchSelect/ak-search-select.ts @@ -1,7 +1,8 @@ +import { PreventFormSubmit } from "@goauthentik/app/elements/forms/helpers"; import { EVENT_REFRESH } from "@goauthentik/common/constants"; import { ascii_letters, digits, groupBy, randomString } from "@goauthentik/common/utils"; import { AKElement } from "@goauthentik/elements/Base"; -import { PreventFormSubmit } from "@goauthentik/elements/forms/Form"; +import { CustomEmitterElement } from "@goauthentik/elements/utils/eventEmitter"; import { msg } from "@lit/localize"; import { TemplateResult, html, render } from "lit"; @@ -17,7 +18,7 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css"; type Group = [string, T[]]; @customElement("ak-search-select") -export class SearchSelect extends AKElement { +export class SearchSelect extends CustomEmitterElement(AKElement) { // A function which takes the query state object (accepting that it may be empty) and returns a // new collection of objects. @property({ attribute: false })