*Describe the bug
In mobile view, linkage rules for sub forms do not work when the dependent field references a nested value.
For example:
- Works:
currentobj.fieldA - Does not work:
currentobj.fieldA.fieldB
This issue occurs only in mobile view for sub forms. The same linkage works as expected in desktop view.
*Environment
- NocoBase version: v1.8.15
- Database type and version: PostGres 16
- OS: MacOS
- Deployment Method: Docker
- Docker image version: nocobase/nocobase:v1.8.15
- NodeJS version: (Not applicable for Docker, unless custom build)
*How To Reproduce
- Create a table with many to many field
- In the edit view of mobile, add a sub form for that m2m field.
- Add Field 1 in the sub form.
- Set its linkage rule to depend on
currentobj.fieldA.fieldB. - Open the form in mobile view.
- Change the value of
fieldA.fieldB.
Result: The linkage rule does not trigger.
Expected behavior
The linkage rule should trigger for nested field dependencies (currentobj.fieldA.fieldB) in mobile view the same way it does in desktop view.
Screenshots
Logs
No API/server error logged during reproduction.
