Spec icon indicating copy to clipboard operation
Spec copied to clipboard

SpFilteringListPresenter items: bypassed in transmission mode

Open Poulfougou opened this issue 1 year ago • 3 comments

Consequences : the unfiltered collection is not initialized and on the first filtering the displayed list becomes blank Suggestion : to avoid bypass of the call of items: of SpFilteringListPresenter, the instance has to expose its own input port instead of delegating that to the embedded list

SpFilteringListPresenter inputItemsPort ^ SpListItemsPort newPresenter: self

defaultInputPort ^ self inputItemsPort

Poulfougou avatar Feb 10 '25 14:02 Poulfougou

Thanks for your report! Do you have a code showing the problem?

Ducasse avatar Feb 16 '25 14:02 Ducasse

Very easy to reproduce. Take from Spec examples, the one regarding transmission. Change one of SpList to a SpFilteredList. Without any filtering pattern, no problem. Once you enter something in the field, the list will disappear. The reason is because the unfiltered list remain empty, due to the bypass of items;

Poulfougou avatar Feb 16 '25 16:02 Poulfougou

Tx!

Ducasse avatar Feb 16 '25 17:02 Ducasse