Skip to content

Commit

Permalink
Merge pull request #14612 from rosenthalj/multiselectScrollIntoView
Browse files Browse the repository at this point in the history
fix #14611 -- fixed  multiselect scrollIntoView to use 'nearest'
  • Loading branch information
cetincakiroglu authored Jan 24, 2024
2 parents 668d895 + 6e3c823 commit fd8b0a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/multiselect/multiselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,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' });
}
}
}
Expand Down

0 comments on commit fd8b0a8

Please sign in to comment.