Closed (duplicate)
Project:
Field Group
Version:
4.x-dev
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Jul 2017 at 18:37 UTC
Updated:
9 Oct 2024 at 15:43 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dddbbb commentedThanks for the patch, this is working nicely for me!
Drupal 8.5.1
PHP 7.1.15
Comment #3
blake.thompson commentedPatch still seems to apply to 8.x-3.x and is still an issue.
Comment #4
dddbbb commentedComment #5
guillaumeduveauHi,
This patch supposes you have a "details" group which we do not need with tabs. Basically to have tabs you need 1 field_group of "tabs" type and inside you need some field_groups of "tab" type.
This patch does not work at all on my configuration which is the one I just described.
I'm proposing another patch that should be more generic. Could you test it ?
Comment #6
kris77 commentedThanks @blake.thompson,
your patch seems to work.
I use field_group 8.x-3.x-dev with TABS vertical group and TAB item
Thanks.
Comment #7
partdigital commentedThis patch applied however the javascript wasn't firing with horizontal tabs with workbench moderation enabled. I've re-rolled the patch, it should work with and without workbench moderation now.
Comment #8
andrewmacpherson commentedBumping to major, because this relates to WCAG success criterion 3.3.1 - Error Identification at level A.
Are the approaches in these core issues relevant for Field Group module?
Note that more than one tab panel may contain an error, but only one tab panel may be in view at a time. #2848507: Indicate that grouping elements have child element errors for ux and a11y covers that scenario for core vertical tabs.
Comment #9
partdigital commentedI ran into some js misfires when using Media with Entity browser. Updating the patch.
Comment #10
mahtab_alam commentedComment #11
partdigital commentedComment #12
rreiss commented#9 Works for me.
Thanks :)
Comment #13
rreiss commentedI have some issues with IE and Edge, the fieldset is being closed (collapsed) on submit and another click on the submit button expands the fieldset again.
Didn't look into it yet, but does it happens to all of you as well?
Comment #14
grimreaperHello,
Using patch from comment 9, it was not working for me on 8.x-3.0-beta1 because vertical tabs the selector is a little bit different.
I haven't tested if it is the same markup on the dev version maybe it has evolved between the 8.x-3.0-beta1 and the last dev version.
Comment #15
grimreaperIt seems that the file has not been transfered...
Comment #16
kalyanik commentedhttps://www.drupal.org/project/field_group/issues/2787179#comment-13231226
This worked for me.
Comment #17
chris matthews commentedThe 2 year old patch in #15 needs a reroll.
Comment #18
megha_kundar commentedComment #19
chris matthews commentedComment #20
narres commented#18 is working fine!
Tested against field_group-8.x-3.1
Comment #21
kris77 commented#18 is working for me too without problem.
Apply patch in 8.x-3.1.
Thanks @Megha_kundar.
Comment #22
dddbbb commentedPatch in #18 is working for me.
Comment #23
opi#18 doesn't work when using Gin admin theme, because the submit button is not in a #edit-actions wrapper (#edit-actions--2 instead).
I rerolled the #18 patch with a more generic selector for the submit button. Works well for me then, when using horizontal tabs with Gin in a node form.
Comment #24
steinmb commentedAnyone tested this on Claro?
Comment #25
antoniya commentedTested patch in #23 with Drupal 9.3.3 & Field Group 3.2 and it worked for my case (vertical tabs in custom theme).
@steinmb this patch won't work when using Claro (or Gin as it is based on it) because it uses '__item' in its BEM classes instead of '__pane' – at least that is the case with vertical tabs. I wonder if it makes sense to use a less theme/direction specific selector like
.field-group-tab– this will cover both vertical & horizontal tabs and also work with both Claro & Gin without introducing any regressions in Seven.Comment #26
antoniya commentedHere's a patch with my suggestion in #25. Interdiff attached.
Tested so far with vertical & horizontal tabs using Seven, Claro & Gin.
Comment #27
antoniya commentedSince 'context' can contain lots of forms and there can be lots of input.form-submit, the code in the patch will execute way too often. I don't see any form ID in 'group_info' that would help with adding specificity to the selector. A different approach might be needed to move forward with this issue.
Comment #28
edyuenyw commentedThanks @opi for #23. This works for me for the default 'Seven' theme.
Passed manual testing.
Comment #29
opiThanks @Antoniya for your more generic patch #26, works like a charm !
Comment #30
rcodinaThe patch on #26 breaks tests.
Comment #31
kufliievskyi commented@rcodina I have also noticed the issue in the tests/src/Functional/MigrateUiFieldGroupTest.php file while executing the tests.
The error I saw is this one:
But it seems to be not related to the fix and issue. In order to pass the tests I have just added
Instead of this code at line 135 in field_group/contrib/field_group_migrate/tests/src/Functional/MigrateUiFieldGroupTest.php
:
@rcodina Could you please specify the error you see in the tests? Or could probably someone else test it also?
The patch on #26 works well for me.
Comment #32
nadim hossain commentedRe-rolled the patch 23 against the new release 8.x-3.6
Comment #33
kufliievskyi commentedRe-rolled the patch 26 against the new release(3.6), branch 8.x-3.x.
Works on Drupal 10.3.0 with Gin admin theme.
Comment #34
rjg commented#33 is working for me on Drupal core 10.3.2 and field_group 3.6.0 with horizontal tabs.
Comment #37
juandels3 commentedPatch #33 working for Drupal 10.3 with version 8.x-3.6 module. I have created the merge request and it is ready for review.
Comment #38
anybodyPlease use MR's!
Comment #39
anybodyPlease check if this issue still exists in 4.x after #2787179: Ensure visibility of invalid fields (JS) has been merged now.
Comment #40
juandels3 commentedHi.
I confirm that this bug is not reproduced in version 4.x-dev, so it is already fixed from this version onwards. Thanks!
Comment #41
anybodyThanks @juandels3 so let's close this closed as duplicate! :)
Comment #42
clemorphyI use the patch from the MR !71 on the version 3.6, but I found an issue with the submit button being targeted with not enough specificity.
I have an entity browser button on one of my tabs, and as soon as I click it, it goes back to my first tab.
The selector in the patch is not specific enough :
$(context).find('input.form-submit')The entity browser also has the form-submit class, and a click on this button triggers the check for invalid fields.
This selector could be more suitable:
$(context).find('input.form-submit.button--primary')Or :
$(context).find('input.form-submit').not('.entity-browser-processed')I'm not sure if this applies to the 4.x-dev version, as it seems to be treated in a different way.