Split Button not cleared from DOM after disposed #1325

Closed
opened 2026-01-29 17:52:07 +00:00 by claunia · 0 comments
Owner

Originally created by @Stuart88 on GitHub (Jul 31, 2024).

  1. Go to example SplitButton from Radzen Blazor site
  2. Inspect DOM in browser dev tools
  3. Open any number of split buttons from one section.
  4. Notice they are added to DOM
  5. Go to 'Edit Source' tab for that section (so split buttons are all disposed)
  6. Go back to 'Example' tab
  7. Open the same split buttons
  8. Notice a new element is added to DOM while previous elements remain.

This can be repeated continuously to add new splitbutton elements to the DOM which are all subsequently orphaned.

image

Originally created by @Stuart88 on GitHub (Jul 31, 2024). 1. Go to [example SplitButton from Radzen Blazor site](https://blazor.radzen.com/splitbutton?theme=material3) 2. Inspect DOM in browser dev tools 3. Open any number of split buttons from one section. 4. Notice they are added to DOM 5. Go to 'Edit Source' tab for that section (so split buttons are all disposed) 6. Go back to 'Example' tab 7. Open the same split buttons 8. Notice a new element is added to DOM while previous elements remain. This can be repeated continuously to add new splitbutton elements to the DOM which are all subsequently orphaned. ![image](https://github.com/user-attachments/assets/22b77884-61f9-40a3-b774-091b32355b62)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1325