diff --git a/tabs/internal/tabs.ts b/tabs/internal/tabs.ts index 5f536cf01..a9426b83e 100644 --- a/tabs/internal/tabs.ts +++ b/tabs/internal/tabs.ts @@ -157,7 +157,7 @@ export class Tabs extends LitElement { const max = offset + extent - hostExtent + scrollMargin; const to = Math.min(min, Math.max(max, scroll)); // TODO(b/299934312): improve focus smoothness - const behavior = !this.focusedTab ? 'smooth' : 'instant' as const; + const behavior = !this.focusedTab ? 'smooth' : 'instant' as ScrollBehavior; this.scrollTo({behavior, top: 0, left: to}); }