Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Craft CMS 5

## Unreleased

- Fixed a bug where admin tables’ action buttons could fire when rendering. ([#19255](https://github.com/craftcms/cms/issues/19255))

## 5.10.11 - 2026-07-15

- Added `craft\gql\base\MutationResolver::requireAllowedSite()`.
Expand Down
1 change: 1 addition & 0 deletions packages/craftcms-vue/admintable/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
:enabled="checks.length ? true : false"
:error="action.error"
:ajax="action.ajax"
:handle-click="action.handleClick ?? true"
v-on:reload="reload"
v-on:click="handleActionClick"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@
:class="menuBtnClasses"
:data-icon="icon"
:disabled="buttonDisabled"
:type="enabled && !isMenuButton && !ajax ? 'submit' : null"
:type="isMenuButton ? null : enabled && !ajax ? 'submit' : 'button'"
v-on="
enabled && !isMenuButton && ajax
? {click: handleClick(param, value, action, ajax, handleClick)}
? {
click: () => {
this.onActionClick(param, value, action, ajax, handleClick);
},
}
: {}
"
>{{ label }}</component
Expand Down Expand Up @@ -57,7 +61,7 @@
!act.allowMultiple &&
hasMultipleSelected
)
? handleClick(
? onActionClick(
act.param,
act.value,
act.action,
Expand Down Expand Up @@ -132,7 +136,7 @@
},

methods: {
handleClick(param, value, action, ajax, handleClick) {
onActionClick(param, value, action, ajax, handleClick) {
this.$emit('click', param, value, action, ajax);

// Is the action button the one to deal with the click?
Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/admintable/dist/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/admintable/dist/js/app.js.map

Large diffs are not rendered by default.

Loading