From 0ab09b5c0e5d934910101d1093ec576752d5147f Mon Sep 17 00:00:00 2001 From: Jeremias Peier Date: Mon, 10 Jun 2024 14:17:51 +0200 Subject: [PATCH] refactor(sbb-stepper): move setter before getter --- src/elements/stepper/stepper/stepper.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/elements/stepper/stepper/stepper.ts b/src/elements/stepper/stepper/stepper.ts index 2cb67b3176..865b1f21d8 100644 --- a/src/elements/stepper/stepper/stepper.ts +++ b/src/elements/stepper/stepper/stepper.ts @@ -32,15 +32,15 @@ export class SbbStepperElement extends LitElement { /** Overrides the behaviour of `orientation` property. */ @property({ attribute: 'horizontal-from', reflect: true }) - public get horizontalFrom(): SbbHorizontalFrom | undefined { - return this._horizontalFrom; - } public set horizontalFrom(value: SbbHorizontalFrom) { this._horizontalFrom = breakpoints.includes(value) ? value : undefined; if (this._horizontalFrom && this._loaded) { this._checkOrientation(); } } + public get horizontalFrom(): SbbHorizontalFrom | undefined { + return this._horizontalFrom; + } private _horizontalFrom?: SbbHorizontalFrom | undefined; /** Steps orientation, either horizontal or vertical. */