Skip to content

Commit

Permalink
chore(radio): make maskId readonly; add comment explaining reason for…
Browse files Browse the repository at this point in the history
… maskId to exist
  • Loading branch information
christophe-g committed Jul 10, 2023
1 parent 272c334 commit 6b7d1e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion radio/lib/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6b7d1e8

Please sign in to comment.