Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix localizable grid in stacked mode #3518

Conversation

arthurperton
Copy link
Contributor

Fixes #3498.

Since only top-level fields can be localizable, the stacked-row overrides the grid subfield's localizable setting in the config just before handing it to the publish-field.

@arthurperton arthurperton requested review from jackmcdade and removed request for jasonvarga April 24, 2021 20:21
@jackmcdade jackmcdade requested review from jasonvarga and removed request for jackmcdade April 28, 2021 20:27
@arthurperton arthurperton requested review from jackmcdade and jesseleite and removed request for jackmcdade April 29, 2021 19:59
@arthurperton
Copy link
Contributor Author

Hi guys, I wonder why this one has been left aside. Since the fix is so short and straightforward. Is this also something that you'd rather see solved on the backend maybe?

@arthurperton arthurperton removed the request for review from jesseleite April 30, 2021 03:52
Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay.

My hesitancy was because it works differently from Replicators. You get the little speech bubble icons in Grid, but not in Replicator.

image

Looks like Replicator has its own Field.vue, where Grid just uses the standard one.

This fix is probably fine for now. I don't think we need to introduce a new component and complexity just to get rid of the icon.

@jasonvarga jasonvarga merged commit f9f51a3 into statamic:3.1 May 5, 2021
@arthurperton
Copy link
Contributor Author

Thanks for clearing that up. I missed that difference.

@arthurperton arthurperton deleted the pr/issue-3498-localizable-grid-readonly branch September 9, 2022 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grid fields with localization enabled still have read-only on fields inside when using stacked mode
2 participants