Skip to content

Commit

Permalink
fix(sbb-option,sbb-autocomplete-grid-option): remove deprecate `activ…
Browse files Browse the repository at this point in the history
…e` property

BREAKING CHANGE: removed `active` property from `sbb-option` and `sbb-autocomplete-grid-option`
  • Loading branch information
jeripeierSBB committed Nov 20, 2024
1 parent b1e75ee commit 75057bc
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/elements/option/option/option-base-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 75057bc

Please sign in to comment.