mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[PR #580] [MERGED] [Fix]: AMS slot modal infinite scroll loop on Windows #1077
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#1077
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/maziggy/bambuddy/pull/580
Author: @aneopsy
Created: 3/3/2026
Status: ✅ Merged
Merged: 3/4/2026
Merged by: @maziggy
Base:
0.2.2b1← Head:fix-ams-slot📝 Commits (9)
5785395Fix AMS slot modal not scrolling to preselected filament1e09471Merge branch '0.2.2b1' into fix-ams-slot5d4f2dbRestore scrolledToRef lost during mergeb96e44dMerge remote-tracking branch 'upstream/0.2.2b1' into fix-ams-slotbb65355Merge branch '0.2.2b1' into fix-ams-slotd0a6e4bFix preset scroll loop and wire up useEffect scroll logiceb47397Merge remote-tracking branch 'upstream/0.2.2b1' into fix-ams-slotb56d43dMerge branch '0.2.2b1' into fix-ams-slot1544b52Adjust scroll behavior in ConfigureAmsSlotModal📊 Changes
1 file changed (+32 additions, -10 deletions)
View changed files
📝
frontend/src/components/ConfigureAmsSlotModal.tsx(+32 -10)📄 Description
Related Issue
Fixes #575
Type of Change
Changes Made
Inline callback refs on preset buttons called scrollIntoView on every
re-render, creating a scroll → re-render → scrollIntoView loop on
Windows.
Replace with a useEffect + data attribute approach that only
scrolls when the selected preset actually changes.
Preselect filament for printer-configured AMS slots
When an AMS slot was configured directly on the printer (no
savedPresetId), the modal didn't preselect the filament even though
it was in the list. Add a third fallback that matches trayInfoIdx
against the full filteredPresets list (cloud and builtin sources).
Testing
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.