Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: issue 9285#9477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nikhilsaikethe merged 2 commits intomainfromfix/issue-9285
Dec 4, 2025
Merged

fix: issue 9285#9477

nikhilsaikethe merged 2 commits intomainfromfix/issue-9285
Dec 4, 2025

Conversation

@nikhilsaikethe
Copy link
Contributor

This PR fixes the issue in#9285

greptile-apps[bot] reacted with thumbs up emoji
@github-actionsgithub-actionsbot added the ☢️ BugSomething isn't working labelDec 4, 2025
@github-actions
Copy link
Contributor

Failed to generate code suggestions for PR

@greptile-apps
Copy link
Contributor

Greptile Overview

Greptile Summary

This PR fixes issue#9285 where selecting multiple streams caused the scroll position to reset to the first selected element.

Changes:

  • Added a defensive check for theinputValue property on theq-select component reference before callingupdateInputValue("")
  • Applied the fix to bothhandleMultiStreamSelection() (line 211) andhandleSingleStreamSelect() (line 228) methods
  • The condition now checks:indexListSelectField && indexListSelectField.inputValue && indexListSelectField.updateInputValue

Root cause:
When theinputValue property doesn't exist on theq-select component, callingupdateInputValue() appears to trigger unwanted side effects that reset the scroll position. By adding this check, the method is only called wheninputValue is present, preventing the scroll reset behavior.

Impact:

  • Users can now select multiple streams without the UI jumping back to the first element
  • No functional changes to the stream selection logic itself
  • Maintains backward compatibility

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The change is a simple defensive check that adds an additional guard condition before calling a method. It follows a common pattern of checking property existence before invoking it, which prevents potential errors and unwanted side effects. The fix is minimal, focused, and addresses the specific issue without modifying any core logic or introducing new functionality.
  • No files require special attention

Important Files Changed

File Analysis

FilenameScoreOverview
web/src/plugins/logs/IndexList.vue5/5Added defensive check forinputValue property before callingupdateInputValue() in stream selection handlers to prevent scroll position reset when multiple streams are selected

Sequence Diagram

sequenceDiagram    participant User    participant IndexList as IndexList.vue    participant QSelect as q-select Component    participant StreamSelect as streamSelect (ref)        User->>IndexList: Select multiple streams    IndexList->>IndexList: handleMultiStreamSelection()    IndexList->>IndexList: $nextTick()        Note over IndexList: Wait for DOM update        IndexList->>StreamSelect: Get ref to streamSelect        alt inputValue exists        IndexList->>StreamSelect: Check inputValue property        StreamSelect-->>IndexList: inputValue exists        IndexList->>StreamSelect: Check updateInputValue method        StreamSelect-->>IndexList: updateInputValue exists        IndexList->>StreamSelect: updateInputValue("")        Note over StreamSelect: Clear filter input without<br/>resetting scroll position    else inputValue does not exist        Note over IndexList: Skip updateInputValue call<br/>Prevents scroll reset    end        IndexList->>IndexList: onStreamChange("")    Note over IndexList: Process stream change        User->>IndexList: Select single stream    IndexList->>IndexList: handleSingleStreamSelect(opt)    IndexList->>IndexList: Update selectedStream    IndexList->>IndexList: $nextTick()        alt inputValue exists        IndexList->>StreamSelect: Check inputValue property        StreamSelect-->>IndexList: inputValue exists        IndexList->>StreamSelect: updateInputValue("")        Note over StreamSelect: Clear filter input    else inputValue does not exist        Note over IndexList: Skip updateInputValue call    end        IndexList->>IndexList: onStreamChange("")
Loading

Copy link
Contributor

@greptile-appsgreptile-appsbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

No files reviewed, no comments

Edit Code Review Agent Settings |Greptile

@nikhilsaikethenikhilsaikethe merged commit2a72fec intomainDec 4, 2025
47 of 54 checks passed
@nikhilsaikethenikhilsaikethe deleted the fix/issue-9285 branchDecember 4, 2025 14:01
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@bjp232004bjp232004bjp232004 approved these changes

+1 more reviewer

@greptile-appsgreptile-apps[bot]greptile-apps[bot] left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

☢️ BugSomething isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@nikhilsaikethe@bjp232004

[8]ページ先頭

©2009-2025 Movatter.jp