Skip to content

Commit

Permalink
fix(sbb-option,sbb-autocomplete-grid-option): remove deprecated `acti…
Browse files Browse the repository at this point in the history
…ve` property (#3220)

BREAKING CHANGE: `active` property from `sbb-option` and
`sbb-autocomplete-grid-option` has been removed
  • Loading branch information
jeripeierSBB authored Nov 21, 2024
1 parent f313fe0 commit bb62e75
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 bb62e75

Please sign in to comment.