Skip to content

Commit c2c7d33

Browse files
committed
Detail view UI: Fix embedded list view actions
Fixes case when detail view has an embedded list view with action, that the action is handled by detail view instead of list view, causing unexpected behavior
1 parent a873a0e commit c2c7d33

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ui/scripts/ui/widgets/detailView.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,8 @@
14861486
}
14871487

14881488
// Detail action
1489-
if ($target.closest('div.detail-view [detail-action], div.detail-view .action.text').size()) {
1489+
if ($target.closest('div.detail-view [detail-action], div.detail-view .action.text').size() &&
1490+
!$target.closest('.list-view').size()) {
14901491
var $action = $target.closest('.action').find('[detail-action]');
14911492
var actionName = $action.attr('detail-action');
14921493
var actionCallback = $action.data('detail-view-action-callback');

0 commit comments

Comments
 (0)