import { customElement, html, LitElement, TemplateResult } from "lit-element"; @customElement("pb-dropdown") export class DropdownButton extends LitElement { constructor() { super(); const menu = this.querySelector(".pf-c-dropdown__menu"); this.querySelectorAll("button.pf-c-dropdown__toggle").forEach((btn) => { btn.addEventListener("click", () => { menu.hidden = !menu.hidden; }); }); } render(): TemplateResult { return html``; } }