From 6b7d1e89140c7f3437dfbe72a331d2cbe4d19af6 Mon Sep 17 00:00:00 2001 From: christophe-g Date: Mon, 10 Jul 2023 22:09:24 +0200 Subject: [PATCH] chore(radio): make maskId readonly; add comment explaining reason for maskId to exist --- radio/lib/radio.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radio/lib/radio.ts b/radio/lib/radio.ts index a02ede8042..3c0d893e8b 100644 --- a/radio/lib/radio.ts +++ b/radio/lib/radio.ts @@ -35,7 +35,9 @@ export class Radio extends LitElement { /** @nocollapse */ static formAssociated = true; - private maskId = `cutout${++maskId}`; + // Unique maskId is required because of a Safari bug that fail to persist + // reference to the mask. This should be removed once the bug is fixed. + private readonly maskId = `cutout${++maskId}`; /** * Whether or not the radio is selected.