Skip to content

Commit

Permalink
Make sure that the first item is selected when opening a select dialo…
Browse files Browse the repository at this point in the history
…g with more than 0 choices.
  • Loading branch information
Ducasse committed Dec 10, 2023
1 parent fdeba46 commit f92245e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Spec2-Dialogs/SpSelectDialog.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ SpSelectDialog >> items [
{ #category : 'api' }
SpSelectDialog >> items: aCollection [

list items: aCollection
list items: aCollection.
aCollection size > 1
ifTrue: [ list selectItem: aCollection first ]
]

{ #category : 'api' }
Expand Down

0 comments on commit f92245e

Please sign in to comment.