TabSheet Appending New Content Instead of Replacing Old Content With New Content

I conducted a test as follows:
2024-01-22.png

What is test1? Text?

new Div(“Test 1”)

Hard to believe that such a fundamental thing is broken, did you verify that you use it the correct way as described in the docs?

I conducted another test as follows
2024-01-22.png
2024-01-22.png

I’ll test what the docs says, but this test seems pretty close

The example on the docs also appears to not work
2024-01-22.png
2024-01-22.png

Can you check the dom structure of the component? And what’s the Vaadin version?

2024-01-22.png

You can try to type customElements.get(‘vaadin-tabs’).version in the browser console. That should show the version in the browser

okay

I was thinking of this:

2024-01-22.png

okay

is this it?
2024-01-22.png

Yes, but that’s weird since the content of the tab has tab attribute but nothing else

That’s how the docs look

Any javascript errors?

2024-01-22.png

I fixed it by mvn clean verify