-
Notifications
You must be signed in to change notification settings - Fork 20
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
Closes #1273 Closes #3848: Allow multiple select menus on the same page #1387
base: main
Are you sure you want to change the base?
Closes #1273 Closes #3848: Allow multiple select menus on the same page #1387
Conversation
modules/custom/az_select_menu/src/Plugin/Block/AzSelectMenu.php
Outdated
Show resolved
Hide resolved
…1360) Co-authored-by: Dana Hertzberg <[email protected]>
…all. (#1334) Co-authored-by: Michael Hagedon <[email protected]> Co-authored-by: Joe Parsons <[email protected]>
…ter menu blocks. (#1332)
…exity (#1345) Co-authored-by: Joe Parsons <[email protected]> Co-authored-by: Dana Hertzberg <[email protected]>
) Co-authored-by: Joe Parsons <[email protected]>
…d sidebars (#1365) Co-authored-by: Mike Hagedon <[email protected]>
…hange bg_attach to bg_attachment (#1398)
…main repo CI builds. (#877)
Co-authored-by: Chris Green <[email protected]>
…emove contacts from page migration. (#1416)
Co-authored-by: bberndt-uaz <[email protected]> Co-authored-by: Joe Parsons <[email protected]>
Co-authored-by: Joe Parsons <[email protected]>
… of flexible page migration. (#1419)
…1442) Co-authored-by: Joe Parsons <[email protected]>
This resolves the issue as it stands, but we should look through it to remove any unneeded code for the fix to work. or decide whether to use data attribute or an ID, but not both. Best practice would probably be to use the data attributes for this, since ID's tend to change with big pipe/caching/lazy loading of blocks. |
modules/custom/az_select_menu/src/Plugin/Block/AzSelectMenu.php
Outdated
Show resolved
Hide resolved
@RyanDool Looks like there was some review on this one if you could take a look again, please. Thanks! |
Co-authored-by: Joe Parsons <[email protected]>
Consider adding this issue into this PR as well |
Description
This change makes unique IDs for each select element and adds a reference to that unique ID in the associated label element.
Related Issues
Closes #1273
Closes #3848
How to test
Previous reference
See https://user-images.githubusercontent.com/1023167/169171863-e881d394-b837-46d6-9494-bf07c16b4419.mov
Types of changes
Arizona Quickstart (install profile, custom modules, custom theme)
Drupal core
Drupal contrib projects
Checklist: