Skip to content

Commit 11afcae

Browse files
[autofix.ci] apply automated fixes
1 parent d150440 commit 11afcae

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: packages/plugins/plugin-tooltip/src/tooltip-provider.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class TooltipProvider {
8080
this.#debounce = options.debounce ?? 200
8181
this.#shouldShow = options.shouldShow ?? this.#_shouldShow
8282
this.#offset = options.offset
83-
this.#shift = options.shift
83+
this.#shift = options.shift
8484
this.#middleware = options.middleware ?? []
8585
this.#floatingUIOptions = options.floatingUIOptions ?? {}
8686
this.#root = options.root
@@ -115,7 +115,12 @@ export class TooltipProvider {
115115
}
116116
computePosition(virtualEl, this.element, {
117117
placement: this.#floatingUIOptions.placement ?? 'top',
118-
middleware: [flip(), offset(this.#offset), shift(this.#shift), ...this.#middleware],
118+
middleware: [
119+
flip(),
120+
offset(this.#offset),
121+
shift(this.#shift),
122+
...this.#middleware,
123+
],
119124
}).then(({ x, y }) => {
120125
Object.assign(this.element.style, {
121126
left: `${x}px`,

0 commit comments

Comments
 (0)