Cms: Grid field used as a configField doesn't work properly

Created on 3 Apr 2020  Â·  5Comments  Â·  Source: statamic/cms

Bug Description

When I add a grid field inside an Addon's configFields, everything is displayed properly, but when adding a row, nothing happens and a console error is shown.

How to Reproduce

Here's how I can recreate the bug:

  1. Create an addon with a grid field inside configFields
  2. Try to add a row
  3. See JS error in console

Expected Behavior

The ability to add a row to the grid

Screenshot/Exception

image

Environment

Statamic version: 3.0.0.-beta-22

Install method:
Fresh install from statamic/statamic

PHP version: 7.4

Operating System:
MacOS

Browser:
Firefox

bug fieldtypes

All 5 comments

Can you share your code for how you implemented the grid field?

Ah, this is because "meta" fields (fields that have their own fields) are not currently supported for use as config fields.

This issue has not had recent activity and has been marked as stale — by me, a robot. Simply reply to keep it open and send me away. If you do nothing, I will close it in a week. I have no feelings, so whatever you do is fine by me.

Still needs fixin' 😉

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sauerbraten picture sauerbraten  Â·  3Comments

dakisan picture dakisan  Â·  4Comments

skoontastic picture skoontastic  Â·  4Comments

aerni picture aerni  Â·  3Comments

aerni picture aerni  Â·  3Comments