Skip to content

Commit

Permalink
fix(datetime): add random value to datetime id
Browse files Browse the repository at this point in the history
  • Loading branch information
felipefialho committed Feb 20, 2025
1 parent 1460bd8 commit 8396346
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/components/datetime/datetime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export class AtomDatetime {
@Prop() label?: string
@Prop() cancelText?: string
@Prop() clearText?: string
@Prop() datetimeId = 'datetime'
@Prop() datetimeId =
'datetime' +
crypto.getRandomValues(new Uint32Array(1))[0].toString(36).slice(-8)
@Prop() dayValues?: number[] | string
@Prop() disabled?: boolean
@Prop() doneText?: string
Expand Down

0 comments on commit 8396346

Please sign in to comment.