Since v3.5.0 where jQuery UI was bumped to v1.14.2 there's an additional "close" button in the titlebar of the confirmation dialog of batch actions.
Expected behavior
The regular, jQuery UI based confirm dialog should be shown with just two buttons in the buttonpane: "ok" and "cancel"
Actual behavior
The confirm dialog is shown but it contains an additional "close" button in the titlebar.
How to reproduce
- Add a batch action with a
confirm param, e.g.
batch_action :process, confirm: "Are you sure?" do |ids|
head :ok
end
- trigger this batch action from the index
Quickfix
The quick'n'dirty fix on our side was to just hide this button via CSS for the time being 😅
.ui-dialog[aria-describedby="dialog_confirm"] .ui-dialog-titlebar-close {
display: none;
}
Since v3.5.0 where jQuery UI was bumped to v1.14.2 there's an additional "close" button in the titlebar of the confirmation dialog of batch actions.
Expected behavior
The regular, jQuery UI based confirm dialog should be shown with just two buttons in the buttonpane: "ok" and "cancel"
Actual behavior
The confirm dialog is shown but it contains an additional "close" button in the titlebar.
How to reproduce
confirmparam, e.g.Quickfix
The quick'n'dirty fix on our side was to just hide this button via CSS for the time being 😅