We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 698c982 commit 32a5d76Copy full SHA for 32a5d76
domino-ui/src/main/java/org/dominokit/domino/ui/menu/Menu.java
@@ -565,7 +565,7 @@ public Menu<V> removeItemAt(int index) {
565
* @return The current Menu instance.
566
*/
567
public Menu<V> removeAll() {
568
- menuItems.forEach(BaseDominoElement::remove);
+ new ArrayList<>(menuItems).forEach(this::removeItem);
569
menuItems.clear();
570
closeCurrentOpen();
571
currentOpen = null;
0 commit comments