I am currently working on a feature where the scroll bar should move to the newly uploaded document in a list of documents. When I upload a new document, I want the scroll bar to automatically move to that document. Currently, the highlighting changes to the latest document but the scroll bar remains stationary. If anyone knows how to implement this functionality, please provide guidance as I am new to UI development. Thank you.
Below is the HTML code snippet displaying the list of documents:
<div id="resume-panel" class="panel-collapse collapse">
<div class="panel-body upload-newFile-container">
<div class="input-group file-preview">
(Code snippet continues...)
</div>
</div>
</div>
Here is a screenshot of the current UI view: https://i.sstatic.net/1R4bB.png
If you require further clarification on the question, feel free to ask. Thank you.