Reflect menu item props

pull/186/head
Cory LaViska 2020-08-16 11:26:31 -04:00
rodzic 3130ea1c39
commit a566e6b48d
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -22,16 +22,16 @@ import { Component, Event, EventEmitter, Prop, Watch, h } from '@stencil/core';
})
export class MenuItem {
/** Set to true to draw the item in a checked state. */
@Prop() checked = false;
@Prop({ reflect: true }) checked = false;
/** Set to true to draw the menu item in an active state. */
@Prop() active = false;
@Prop({ reflect: true }) active = false;
/** A unique value to store in the menu item. */
@Prop() value = '';
@Prop({ reflect: true }) value = '';
/** Set to true to draw the menu item in a disabled state. */
@Prop() disabled = false;
@Prop({ reflect: true }) disabled = false;
@Watch('active')
handleActiveChange() {