Created
October 10, 2018 10:33
-
-
Save fmfpereira/affa3f6db3233e758c0733a10e9ffe73 to your computer and use it in GitHub Desktop.
#DRUPAL#8#PATCH# Open first field group tab on form element error.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/formatters/tabs/tabs.js b/formatters/tabs/tabs.js | |
index c2c5b5d3..3a652060 100644 | |
--- a/formatters/tabs/tabs.js | |
+++ b/formatters/tabs/tabs.js | |
@@ -15,7 +15,7 @@ | |
// Add required fields mark to any element containing required fields | |
var direction = group_info.settings.direction; | |
- $(context).find('[data-' + direction + '-tabs-panes] details').once('fieldgroup-effects').each(function () { | |
+ $($(context).find('[data-' + direction + '-tabs-panes] details').once('fieldgroup-effects').get().reverse()).each(function () { | |
var $this = $(this); | |
if (typeof $(this).data(direction + 'Tab') !== 'undefined') { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment