Skip to content

Commit

Permalink
core: fix palette search
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Feb 21, 2022
1 parent a9f89bb commit b98b313
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/Sandblocks-Core/SBPaletteContainer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ SBPaletteContainer >> updateSearch [

| query |
query := search contents asLowercase.
content submorphsDo: [:m | m visible: (query isEmpty or: [self submorph: m matchesQuery: query])].
content submorphsDo: [:container |
container submorphsDo: [:m | | show |
show := query isEmpty or: [self submorph: m matchesQuery: query].
m
visible: show;
disableLayout: show not]].
content layoutChanged
]

0 comments on commit b98b313

Please sign in to comment.