-
Notifications
You must be signed in to change notification settings - Fork 715
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: issue 9285 #9477
Conversation
3900b05 to
1a34f1e
Compare
|
Failed to generate code suggestions for PR |
Greptile OverviewGreptile SummaryThis PR fixes issue #9285 where selecting multiple streams caused the scroll position to reset to the first selected element. Changes:
Root cause: Impact:
Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
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("")
|
There was a problem hiding this 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
1a34f1e to
ffe5647
Compare
This PR fixes the issue in #9285