Resolve #3408500 "Form attr"
2 unresolved threads
2 unresolved threads
Closes #3408500
Merge request reports
Activity
added 5 commits
-
7c1be2f0...1a96b4da - 4 commits from branch
project:1.x
- 7c73e14e - POC - #3408500
-
7c1be2f0...1a96b4da - 4 commits from branch
- js/form-actions.js 0 → 100644
1 ((Drupal, once) => { 2 Drupal.behaviors.navigationFormActions = { 3 attach: (context) => { 4 // Should be some common attribute. 5 once( 6 'form-actions', 7 '.node-form', 8 context, 9 ).forEach((form) => { 10 const topBar = document.querySelector('.top-bar__content'); 11 const action = form.querySelector( 12 '[data-drupal-selector="edit-actions"] [type="submit"]', 13 ); 14 15 if (topBar && action) { 16 // https://dev.to/dailydevtips1/submit-button-outside-the-form-2m6f - js/form-actions.js 0 → 100644
Please register or sign in to reply