angular-ui/ui-grid

Expandable with enableFullRowSelection

Open

#7,089 建立於 2020年6月22日

在 GitHub 查看
 (2 留言) (0 反應) (1 負責人)JavaScript (2,496 fork)batch import
good first issuegrid-selection

倉庫指標

Star
 (5,395 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

When enableFullRowSelection is also used, the click event on the expand button also triggers the selection.

Ideally this would caught in the toggleRowExpansion function, but for those in immediate need, at the end of me on.rowExpandedStateSelection you can add something like:

              if (event !== undefined && event.currentTarget !== undefined && event.currentTarget.tagName === "I")
              {

// Cancel bubble of event }

This way the full row selection isn't executed.

貢獻者指南