whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
790 stars 234 forks source link

Callbacks like "displayUsingLabels()" or "hideOnDetail()" not working in Custom Preset Classes. #113

Open ChrisAluani opened 5 years ago

ChrisAluani commented 5 years ago

Field callbacks like displayUsingLabels() on the Select field or hideOnDetail() on all other fields are working correctly when a layout is directly added to a Flexible field, but not when used in a Custom Preset Class.

In case of "displayUsingLabels" it means that in the detail view, the key of the select field is displayed instead of the value. This bug is also mentioned on an [existing PR].(https://github.com/whitecube/nova-flexible-content/pull/30)

Wiejeben commented 4 years ago

Experiencing the same behaviour right now.

Probably unrelated, I used the following example in order to create a BelongsTo fields: https://github.com/whitecube/nova-flexible-content/issues/5#issuecomment-469902604

It shows the key instead of the label on the detail page.

Fabio1988 commented 4 years ago

same here unfortuanetely.