Fix: distribution field invisible — remove html field before complex field in Tab 3#14
Merged
Merged
Conversation
Carbon Fields cannot render a complex field when a html-type field precedes it in the same tab container. Symptom: entire distribution field invisible after intro text. Remove the odw_dist_intro html field from the tab array and fold its explanation text into the complex field's own help text. Also remove the now-unused .odw-distribution-intro CSS rule. https://claude.ai/code/session_FEyiS
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
After the previous fix (PR #13), the entire distribution field in Tab 3 was invisible — no "Add Entry" button, no form, just blank space after the intro text.
Root cause: Carbon Fields cannot render a
complexfield when ahtml-type field immediately precedes it in the same tab container. Theodw_dist_introhtml field (intro box explaining "Was ist eine Distribution?") was blocking CF from rendering theodw_distributionscomplex field.This is a CF limitation: HTML fields and complex fields cannot coexist in the same tab-level array. Tab 4 works fine because its HTML fields are followed by simple fields (text, select, date), not complex fields.
Fix
Field::make('html', 'odw_dist_intro')from Tab 3's field arrayset_help_text()so the explanation isn't lost.odw-distribution-introCSS rule fromadmin.cssTest plan
https://claude.ai/code/session_FEyiS
Generated by Claude Code