Skip to content

Fix scrolling in node-type dropdowns - #668

Open
yiheng-kkk wants to merge 1 commit into
OpenBMB:mainfrom
yiheng-kkk:fix/dropdown-local-scroll
Open

Fix scrolling in node-type dropdowns#668
yiheng-kkk wants to merge 1 commit into
OpenBMB:mainfrom
yiheng-kkk:fix/dropdown-local-scroll

Conversation

@yiheng-kkk

Copy link
Copy Markdown

Fixes #621.

Keep scroll and mousedown events inside the teleported menu from closing it, and leave the scrollbar's default action enabled. Scrolling the containing form or clicking outside still closes the menu.

Add a dependency-free browser regression page at /tests/dropdown-scroll.html (cd frontend && npm ci && npm run dev). Its 10 cases cover internal scrolling, the last three node types, outside dismissal, and separate menu instances.

Validation: production npm run build; regression page in Chromium, Firefox, and WebKit; real wheel selection in all three and native scrollbar dragging in Chromium/WebKit; npx eslint tests/dropdown-scroll.js; git diff --check.

Unchanged baseline limitations: full source ESLint reports the same 75 diagnostics; uvx ruff check . reports 2,406. uv run --frozen pytest -v stalls in the existing WebSocket mock serialization; the other 66 tests pass. The YAML CI script exits successfully but does not invoke load_config; direct loading passes 5 files and needs environment placeholders for 40. No backend or dependency files changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot select "literal", "loop_counter" and "loop_timer" due to scroll bug in node-type dropdown.

1 participant