angular-ui/ui-grid

Expandable with enableFullRowSelection

Open

#7.089 geöffnet am 22. Juni 2020

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (2.496 Forks)batch import
good first issuegrid-selection

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide