From 1734bf54a742b73c4ecda9998318bce4e37a1802 Mon Sep 17 00:00:00 2001 From: Christophe Eymard Date: Thu, 23 Mar 2023 17:13:13 +0100 Subject: [PATCH] replaced Set with WeakSet (#1249) --- src/internal/form.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/form.ts b/src/internal/form.ts index 667431e55..79c76b9af 100644 --- a/src/internal/form.ts +++ b/src/internal/form.ts @@ -19,7 +19,7 @@ const reportValidityOverloads: WeakMap 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 = new Set(); +const userInteractedControls: WeakSet = new WeakSet(); // // We store a WeakMap of interactions for each form control so we can track when all conditions are met for validation.