Commit 2270ab1
Fix duplicated IDs issue while using multiple modals in a single page (#82)
* Fix Modal title hardcoded id
Title: Fix duplicated IDs issue while using multiple modals in a single page
Description: This pull request addresses the issue of duplicated IDs by modifying the code to use the modal ID for creating the H1 ID. This change ensures that the H1 ID remains unique, even when multiple modals are present on the same page.
Signed-off-by: Clément Lelong <clement@numericite.eu>
* Update src/Modal.tsx
Co-authored-by: Joseph Garrone <joseph.garrone.gj@gmail.com>
Signed-off-by: Clément Lelong <clement@numericite.eu>
* Update src/Modal.tsx
Co-authored-by: Joseph Garrone <joseph.garrone.gj@gmail.com>
Signed-off-by: Clément Lelong <clement@numericite.eu>
* Update src/Modal.tsx
Co-authored-by: Joseph Garrone <joseph.garrone.gj@gmail.com>
Signed-off-by: Clément Lelong <clement@numericite.eu>
* Update src/Modal.tsx
Signed-off-by: Joseph Garrone <joseph.garrone.gj@gmail.com>
---------
Signed-off-by: Clément Lelong <clement@numericite.eu>
Signed-off-by: Joseph Garrone <joseph.garrone.gj@gmail.com>
Co-authored-by: Joseph Garrone <joseph.garrone.gj@gmail.com>1 parent c10ead8 commit 2270ab1
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
0 commit comments