fix(chart,dashboardgrid demos): use dees-button text property consistently in demo interactions and update dataset button highlighting reliably

This commit is contained in:
2026-04-02 19:43:16 +00:00
parent 5cf8161735
commit 1a3a5e5454
5 changed files with 35 additions and 50 deletions

View File

@@ -174,7 +174,7 @@ export const demoFunc = () => {
// Wire up button click handlers
const buttons = elementArg.querySelectorAll('dees-button');
buttons.forEach(button => {
const text = button.textContent?.trim();
const text = (button as any).text?.trim();
switch (text) {
case 'Add Structured Log':
button.addEventListener('click', () => generateRandomLog());