Skip to content

Commit dd8ca2c

Browse files
committed
fix: scroll suggestions list to top when query changes
1 parent 70a24db commit dd8ca2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LiveDevelopment/LivePreviewEdit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ define(function (require, exports, module) {
918918
html += '</ul>';
919919

920920
$suggestions.html(html);
921+
$suggestions.scrollTop(0); // always need to scroll to top when query changes
921922

922923
// when a suggestion is clicked we add the folder path in the input box
923924
$suggestions.find('.folder-suggestion-item').on('click', function() {

0 commit comments

Comments
 (0)