pharo-spec / Spec

Spec is a framework in Pharo for describing user interfaces.
MIT License
61 stars 63 forks source link

List context menu leaks adapter #1543

Open guillep opened 4 months ago

guillep commented 4 months ago

Given the following presenter

l := SpListPresenter new.
l items: #(1 2 3).
l contextMenu: (SpMenuPresenter new
     addItem: [ :item |
         item
             name: 'something';
             action: [ :e | e halt ] ];
     yourself).
l open

If you open the context menu and click on it, e references the menu item adapter.