Skip to content

Commit 6912fe6

Browse files
author
Tanner Reits
committed
use existing scrollIntoViewBehavior
1 parent 4659b98 commit 6912fe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/components/segment/segment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export class Segment implements ComponentInterface {
344344
// Remove the transform to slide the indicator back to the button clicked
345345
currentIndicator.style.setProperty('transform', '');
346346

347-
current.scrollIntoView();
347+
this.scrollActiveButtonIntoView(true);
348348
});
349349

350350
this.value = current.value;

0 commit comments

Comments
 (0)