mirror of
https://github.com/goauthentik/authentik
synced 2026-04-25 17:15:26 +02:00
* web/forms: fix forms not resetting state when modal closes Overview: Forms were not properly resetting their state when closing modals, which caused stale values to persist when reopening forms. This affected all forms with @state() decorated properties. Testing: 1. Create any item (user, token, application, etc.), close modal 2. Click Create again, form should show default/empty values 3. Edit an item, cancel, click Create - form should be empty 4. Edit an item, cancel, edit same item - should show correct data Motivation: Form inputs retained values from previous create/edit operations. * Fix linter errors, types. * Add property accessors, types. --------- Co-authored-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com>
26 lines
505 B
TypeScript
26 lines
505 B
TypeScript
/**
|
|
* @file Lit-specific globals applied to the Window object.
|
|
*/
|
|
|
|
export {};
|
|
|
|
declare global {
|
|
interface HTMLElement {
|
|
/**
|
|
* A property defined by Lit to track the element part.
|
|
*/
|
|
_$litPart$?: unknown;
|
|
}
|
|
|
|
interface Window {
|
|
/**
|
|
* A possible nonce to use create a CSP-safe style element.
|
|
*/
|
|
litNonce?: string;
|
|
}
|
|
|
|
interface HTMLElementTagNameMap {
|
|
"qr-code": import("webcomponent-qr-code").default;
|
|
}
|
|
}
|