You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/flexible-field-support.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,11 +130,25 @@ If a field remains hidden when it should be visible:
130
130
131
131
### Context Detection
132
132
133
-
The Flexible context is detected by examining:
133
+
The Flexible context is detected by examining (in order of priority):
134
134
135
-
1. The container's own `attribute` property
136
-
2. Sibling field `attribute` properties
137
-
3. Parent component structure
135
+
1. Cached context prefix from previous field-changed events
136
+
2. The container's own `attribute` property
137
+
3. Child field `attribute` properties (inside the dependency container)
138
+
4. Cached dependent field values
139
+
5. Parent component structure
140
+
141
+
The context prefix is cached once detected, improving performance and reliability for subsequent dependency checks.
142
+
143
+
### Cross-Group Event Filtering
144
+
145
+
When a field changes inside a Flexible layout, the event is broadcast globally. The dependency container automatically filters events to only process those from the same Flexible group:
146
+
147
+
- Events with a prefix matching the container's context are processed
148
+
- Events from different Flexible groups (different index) are ignored
149
+
- Non-prefixed events are processed normally (for non-Flexible contexts)
150
+
151
+
This ensures that changing a field in Overlay Item #1 doesn't affect the dependent fields in Overlay Item #2.
138
152
139
153
### Regex Patterns Used
140
154
@@ -154,6 +168,7 @@ The Flexible context is detected by examining:
154
168
155
169
## Version History
156
170
171
+
-**1.0.6**: Improved Flexible field context detection and cross-group event filtering
157
172
-**1.0.5**: Added Flexible field support (this feature)
0 commit comments