-
|
Hi, I have a modal in a component, but it dupllicates the first modals information into other modals. Component: Main: |
Beta Was this translation helpful? Give feedback.
Answered by
saadeghi
Oct 29, 2022
Replies: 1 comment
-
|
I can't be sure about the cause of problem unless you provide a sample repo so I can run your code... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
saadeghi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't be sure about the cause of problem unless you provide a sample repo so I can run your code...
But I think the problem here is the
id="my-modal". In your component, all modals have the samemy-modalIDs following by the same<label for="my-modal">. Each modal should have a unique ID and the following label to point to the same ID.