Our blazing fast Grid component built with pure JavaScript


Post by henrique »

When appends a container with a tab config, give the error:

Uncaught (in promise) TypeError: activeItem.tab.show is not a function

It's just an error, everything works as expected.

Bellow the code that's give the error:

new Button(
{
    appendTo : document.body,
   title: 'My Button',
   onClick: () =>
  {
    tab.add(container);
}
});

let container = new Container({
  tab: {
     icon: 'fa-duotone fa-circle-xmark',
     iconAlign: 'end'
  }
});

let tab = new TabPanel({
    appendTo : document. Body
});

Post by tasnim »

Reproduced! I've created a ticket to fix it. Here it is https://github.com/bryntum/support/issues/5537

Thanks for your detailed report.
Good Luck :),
Tasnim


Post by henrique »

The fix worked, but when add the new container, the title and icons doesn't appear, and the focus is not active in the new tab.


Post by marcio »

Hey henrique,

Could you please assemble a quick sample about how are you experiencing after the fix??

Best regards,
Márcio


Post by henrique »

Just click in the button, with the sample, will happen what's in the image appended.

Imagem.png
Imagem.png (2.11 KiB) Viewed 485 times
ledocument. BodyabPanel({
    appendTo: document.body
});

new Button({
    appendTo: document. Body,
    text: 'My Button',
    onClick: () => {
        let container = new Container({
            tab: {
                icon: 'fa-duotone fa-circle-xmark',
                iconAlign: 'end',
                title: 'Tab'
            }
        });
        tab.add(container);
    }
});

Post by marcio »

Thanks for the report henrique, I created a ticket for checking what's causing that https://github.com/bryntum/support/issues/5608

Best regards,
Márcio


Post Reply