UNPKG

@vaadin/select

Version:
24 lines (21 loc) 668 B
/** * @license * Copyright (c) 2023 - 2025 Vaadin Ltd. * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ */ import { SlotController } from '@vaadin/component-base/src/slot-controller.js'; /** * A controller to manage the value button element. */ export class ButtonController extends SlotController { constructor(host) { super(host, 'value', 'vaadin-select-value-button', { initializer: (button, host) => { host._setFocusElement(button); host.ariaTarget = button; host.stateTarget = button; button.setAttribute('aria-haspopup', 'listbox'); }, }); } }