When I use LitElement @vaadin/router animates pages and sets the component height or width to 0px. This problem does not occur when using HTMLElement or PolymerElement
How can I fix this problem?
import {html, LitElement} from 'lit-element'
class ... extends LitElement {
render() {
return html`
<style>
:host{ display: block}
</style>
<h1> ... </h1>
`
}
}
customElements.define('...-component', ...)
const router = new Router(outlet);
router.setRoutes([{
path: '/',
animate: true,
children: [
{path: '', component: 'home-component'},
{path: '/image', component: 'image-component'},
{path: '/user', component: 'user-component'}
]
}]);