Skip to content

[6.x] Correct Grid fieldtype deleting row condition#12488

Merged
duncanmcclean merged 1 commit intostatamic:masterfrom
martyf:fix/grid-fieldtype-delete
Sep 18, 2025
Merged

[6.x] Correct Grid fieldtype deleting row condition#12488
duncanmcclean merged 1 commit intostatamic:masterfrom
martyf:fix/grid-fieldtype-delete

Conversation

@martyf
Copy link
Copy Markdown
Contributor

@martyf martyf commented Sep 18, 2025

In the Grid fieldtype, there is a v-if for the delete confirmation modal that had the condition:
v-if="deletingRow"
The deletingRow is the row index, zero-based.

This does not work for the first row: this condition fails when deletingRow is 0.

This PR updates the condition to explicitly look for when deletingRow is not null

Copy link
Copy Markdown
Member

@duncanmcclean duncanmcclean left a comment

Choose a reason for hiding this comment

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

Thanks!

@duncanmcclean duncanmcclean merged commit a477063 into statamic:master Sep 18, 2025
19 checks passed
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.

2 participants