forked from raystack/apsara
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Radio/Checkbox): functionality issue incase there are multiple Ra…
…dio buttons & checkboxes (#29) * fix(Radio): functionality issue incase there are multiple sets of radio buttons * fix(Radio/Checkbox): functionality issue incase there are multiple Radio buttons & checkboxes
- Loading branch information
1 parent
7895765
commit 5f674d1
Showing
3 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const generateRandomId = () => { | ||
const randomChars = Math.random().toString(36).substring(2, 10); | ||
const timestamp = Date.now().toString(36); | ||
return randomChars + timestamp; | ||
}; |