Skip to content

Commit

Permalink
workaround bug on search in component lists
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Jul 12, 2020
1 parent b1415dd commit e099a4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Spec2-Adapters-Morphic/SpComponentListDataSource.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,17 @@ SpComponentListDataSource >> rowHeight: rowIndex [

{ #category : #accessing }
SpComponentListDataSource >> searchText: aString [
| search text result |
"| search text result |
aString isEmptyOrNil ifTrue: [ ^ #() ].
result := OrderedCollection new.
search := aString trimBoth asLowercase.
1 to: self numberOfRows do: [ :rowIndex |
text := (self model displayValueAt: rowIndex) contents trimBoth asLowercase.
(text beginsWith: search)
ifTrue: [ result add: rowIndex ] ].
^ result asArray
^ result asArray"
"Do nothing for the moment"
^ #()
]

{ #category : #'drag and drop' }
Expand Down

0 comments on commit e099a4c

Please sign in to comment.