Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ID generation replace #1246

Merged
merged 2 commits into from
Aug 27, 2024
Merged

ID generation replace #1246

merged 2 commits into from
Aug 27, 2024

Conversation

jnicholCU
Copy link
Contributor

@jnicholCU jnicholCU commented Aug 26, 2024

Replacing our ID generation for these blocks so that reusable blocks don't run into errors with duplicate reusable blocks on the same page.

This affects the video reveal, slider, image gallery video hero unit, and expandable content blocks.

Closes #1245
Closes #1137

Replacing our ID generation for these blocks so that reusable blocks don't run into errors with duplicate reusable blocks on the same page.
@jnicholCU
Copy link
Contributor Author

This is fairly easy to test. You just need to make a reusable block of those types and place them multiple times on the same page. The new ID generation should stop them from breaking themselves because the IDs are unique.

@jnicholCU jnicholCU marked this pull request as ready for review August 26, 2024 17:51
Updated video hero unit unique ID
@patrickbrown-io patrickbrown-io self-requested a review August 26, 2024 18:33
Copy link
Contributor

@patrickbrown-io patrickbrown-io left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allows for multiple blocks using JS on the same page, works as advertised!

Holding off on merge until we get the okay, but this is good to go

@timurtripp timurtripp added the bug Something isn't working label Aug 27, 2024
@patrickbrown-io patrickbrown-io merged commit 7cc208d into main Aug 27, 2024
2 checks passed
@patrickbrown-io patrickbrown-io deleted the issue/1245 branch August 27, 2024 15:33
github-actions bot pushed a commit that referenced this pull request Aug 27, 2024
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
3 participants