Skip to content

fix(programmatic): define a unique idPrefix for each programmatic instance#1533

Merged
mlmoravek merged 4 commits intodevelopfrom
bug/1532/programmatic-ids
Feb 13, 2026
Merged

fix(programmatic): define a unique idPrefix for each programmatic instance#1533
mlmoravek merged 4 commits intodevelopfrom
bug/1532/programmatic-ids

Conversation

@mlmoravek
Copy link
Member

Fixes #1532

Proposed Changes

Added idPrefix attribute to the programmatic options, to define a custom id prefix used for the useId composble from Vue.
When no idPrefix attribute is passed, a unique idPrefix is created by the total count of all created instances for the used registry.

@mlmoravek mlmoravek added the bug Something isn't working label Jan 31, 2026
@netlify
Copy link

netlify bot commented Jan 31, 2026

Deploy Preview for oruga-documentation-preview ready!

Name Link
🔨 Latest commit 80e970a
🔍 Latest deploy log https://app.netlify.com/projects/oruga-documentation-preview/deploys/697df02afe8eca00080d43a0
😎 Deploy Preview https://deploy-preview-1533--oruga-documentation-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mlmoravek mlmoravek changed the title fix(programmatic): define a unique idPrefix for each programmatic instance fix(programmatic): define a unique idPrefix for each programmatic instance Jan 31, 2026
@mlmoravek mlmoravek merged commit 7ade501 into develop Feb 13, 2026
12 checks passed
@mlmoravek mlmoravek deleted the bug/1532/programmatic-ids branch February 13, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate element Id's can be generated when using a programmatic modal, causing broken :for attributes.

1 participant