mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
remove void
This commit is contained in:
@@ -52,7 +52,7 @@ export default class SlRadioButton extends ShoelaceElement {
|
||||
/** Draws a pill-style radio button with rounded edges. */
|
||||
@property({ type: Boolean, reflect: true }) pill = false;
|
||||
|
||||
connectedCallback(): void {
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
this.setAttribute('role', 'presentation');
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ export default class SlRadio extends ShoelaceElement {
|
||||
/** Disables the radio. */
|
||||
@property({ type: Boolean, reflect: true }) disabled = false;
|
||||
|
||||
connectedCallback(): void {
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
this.setInitialAttributes();
|
||||
this.addEventListeners();
|
||||
|
||||
@@ -81,7 +81,7 @@ export default class SlTreeItem extends ShoelaceElement {
|
||||
@query('.tree-item__children') childrenContainer: HTMLDivElement;
|
||||
@query('.tree-item__expand-button slot') expandButtonSlot: HTMLSlotElement;
|
||||
|
||||
connectedCallback(): void {
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
|
||||
this.setAttribute('role', 'treeitem');
|
||||
@@ -201,7 +201,7 @@ export default class SlTreeItem extends ShoelaceElement {
|
||||
this.isLeaf = !this.lazy && this.getChildrenItems().length === 0;
|
||||
}
|
||||
|
||||
protected willUpdate(changedProperties: PropertyValueMap<SlTreeItem> | Map<PropertyKey, unknown>): void {
|
||||
protected willUpdate(changedProperties: PropertyValueMap<SlTreeItem> | Map<PropertyKey, unknown>) {
|
||||
if (changedProperties.has('selected') && !changedProperties.has('indeterminate')) {
|
||||
this.indeterminate = false;
|
||||
}
|
||||
|
||||
@@ -32,10 +32,7 @@ export function watch(propName: string, options?: WatchOptions) {
|
||||
waitUntilFirstUpdate: false,
|
||||
...options
|
||||
};
|
||||
return <ElemClass extends LitElement>(
|
||||
proto: ElemClass,
|
||||
decoratedFnName: UpdateHandlerFunctionKeys<ElemClass>
|
||||
): void => {
|
||||
return <ElemClass extends LitElement>(proto: ElemClass, decoratedFnName: UpdateHandlerFunctionKeys<ElemClass>) => {
|
||||
// @ts-expect-error -- update is a protected property
|
||||
const { update } = proto;
|
||||
if (propName in proto) {
|
||||
|
||||
Reference in New Issue
Block a user