Our blazing fast Grid component built with pure JavaScript
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
});
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.
Hey henrique,
Could you please assemble a quick sample about how are you experiencing after the fix??
Just click in the button, with the sample, will happen what's in the image appended.
- Imagem.png (2.11 KiB) Viewed 486 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);
}
});