Skip to content

Commit f299af6

Browse files
committed
Fix select the first element in element list after select a category
1 parent f036d75 commit f299af6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Pyramid-Bloc/PyramidFilteringListNavigationAddElementPlugin.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ PyramidFilteringListNavigationAddElementPlugin >> installOnAddElementFilteringLi
5151
displayIcon: [ :each | each icon ].
5252
categoryPresenter whenSelectionChangedDo: [ :category | | index elements |
5353
index := category selectedIndex.
54-
5554
index <= 0 ifFalse: [
5655
elements := (categoryPresenter items at: index).
57-
elementPresenter items: elements elements ] ].
56+
elementPresenter items: elements elements.
57+
elementPresenter selectItem: elementPresenter items first ] ].
5858

5959
libraryPresenter categoryPresenter: categoryPresenter.
6060
libraryPresenter elementPresenter: elementPresenter.

0 commit comments

Comments
 (0)