Skip to content

Commit

Permalink
fix #969 Selection listeners on ListGroup are not triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed Oct 13, 2024
1 parent 1505df8 commit 7756618
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public ListItem<T> getSelection() {
*/
@Override
public ListItem<T> select() {
return select(isSelectable());
return select(isSelectionListenersPaused());
}

/**
Expand All @@ -319,7 +319,7 @@ public ListItem<T> deselect() {
*/
@Override
public ListItem<T> select(boolean silent) {
if (selectable && isEnabled()) {
if (isSelectable() && isEnabled()) {
if (nonNull(listGroup)) {
listGroup.select(this, silent);
}
Expand All @@ -339,7 +339,7 @@ public ListItem<T> select(boolean silent) {
*/
@Override
public ListItem<T> deselect(boolean silent) {
if (selectable && isEnabled()) {
if (isSelectable() && isEnabled()) {
if (nonNull(listGroup)) {
listGroup.deselect(this, silent);
}
Expand Down

0 comments on commit 7756618

Please sign in to comment.