From 6e3c82379fb855c150d3a6f20b30b8a5017dc252 Mon Sep 17 00:00:00 2001 From: joseph rosenthal Date: Tue, 23 Jan 2024 05:38:49 -0500 Subject: [PATCH] fixed scrollIntoView to use 'nearest' --- src/app/components/multiselect/multiselect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/multiselect/multiselect.ts b/src/app/components/multiselect/multiselect.ts index 92cf0ecaa5d..67a0b0637c2 100755 --- a/src/app/components/multiselect/multiselect.ts +++ b/src/app/components/multiselect/multiselect.ts @@ -1915,7 +1915,7 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft let selectedListItem = DomHandler.findSingle(this.itemsWrapper, '.p-multiselect-item.p-highlight'); if (selectedListItem) { - selectedListItem.scrollIntoView({ block: 'nearest', inline: 'center' }); + selectedListItem.scrollIntoView({ block: 'nearest', inline: 'nearest' }); } } }