replaced Set with WeakSet (#1249)

pull/1198/head^2
Christophe Eymard 2023-03-23 17:13:13 +01:00 zatwierdzone przez GitHub
rodzic 88efec7815
commit 1734bf54a7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -19,7 +19,7 @@ const reportValidityOverloads: WeakMap<HTMLFormElement, () => boolean> = new Wea
// We store a Set of controls that users have interacted with. This allows us to determine the interaction state
// without littering the DOM with additional data attributes.
//
const userInteractedControls: Set<ShoelaceFormControl> = new Set();
const userInteractedControls: WeakSet<ShoelaceFormControl> = new WeakSet();
//
// We store a WeakMap of interactions for each form control so we can track when all conditions are met for validation.