From bb62e7580886d1c2d041af0ef60abe2478d7e1bb Mon Sep 17 00:00:00 2001 From: Jeri Peier Date: Thu, 21 Nov 2024 07:57:30 +0100 Subject: [PATCH] fix(sbb-option,sbb-autocomplete-grid-option): remove deprecated `active` property (#3220) BREAKING CHANGE: `active` property from `sbb-option` and `sbb-autocomplete-grid-option` has been removed --- src/elements/option/option/option-base-element.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/elements/option/option/option-base-element.ts b/src/elements/option/option/option-base-element.ts index b7a2f96c58..0674c3d60d 100644 --- a/src/elements/option/option/option-base-element.ts +++ b/src/elements/option/option/option-base-element.ts @@ -3,7 +3,7 @@ import { html, LitElement, nothing, type PropertyValues, type TemplateResult } f import { property, state } from 'lit/decorators.js'; import { SbbConnectedAbortController } from '../../core/controllers.js'; -import { forceType, slotState } from '../../core/decorators.js'; +import { slotState } from '../../core/decorators.js'; import { isAndroid, isSafari, setOrRemoveAttribute } from '../../core/dom.js'; import type { EventEmitter } from '../../core/eventing.js'; import { SbbDisabledMixin, SbbHydrationMixin } from '../../core/mixins.js'; @@ -46,16 +46,6 @@ abstract class SbbOptionBaseElement extends SbbDisabledMixin( return this.getAttribute('value') ?? ''; } - /** - * Whether the option is currently active. - * TODO: remove with next major version. - * @deprecated - * @internal - */ - @forceType() - @property({ reflect: true, type: Boolean }) - public accessor active: boolean = false; - /** Whether the option is selected. */ @property({ type: Boolean }) public set selected(value: boolean) {