You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(bamsec): Full-View filings search input destroys itself and loses focus per keystroke #70
In BamSEC Sub-Tabs layout mode, the filings search <input> attaches an oninput handler that invokes News.renderBamsecFullView(), which replaces all children of #bamsec-full-view including fullHead and the <input> itself. Typing a single character destroys the active input element, drops focus to BODY, and strips trailing whitespace via .trim().
References: web/js/news.js:576-585, 684
Steps to Reproduce
Switch BamSEC layout mode to Sub-Tabs (⊞ Tabs).
Select a ticker with SEC filings (e.g. AAPL) and open the BamSEC Filings sub-tab.
Click the filter search box and type shelf.
Observe keyboard focus is lost immediately after typing s.
Expected Behavior
Filtering filings should only re-render the filings results container, keeping the search input mounted with preserved focus and cursor position.
Operating System & Version
OS: Windows 11 x64 / macOS arm64 / Linux x86_64
Version: v2.12.0
Display / Scale: Verified via live Chrome CDP (1600x960) & local unit/backend suite
Logs & Additional Context
Live Chrome CDP verified focusedBefore: True, sameDomNode: False, focusedAfter: False, activeTagAfter: 'BODY' after a single input event.
Summary of Changes: Scoped BamSEC Full-View filtering to .bamsec-results-body in web/js/news.js so .bamsec-search-input stays mounted with preserved focus and cursor position across keystrokes. Verified live in Chrome CDP (sameDomNode: true, focusedAfter: true).
Verification: compileall clean, 84/84 unit tests passing (including tests/test_audit_fixes.py), and live Chrome CDP verification passed.
This issue will automatically close upon PR #82 review and merge into main.
Activity
github-actions commentedon Dec 2, 2026
✅ Issue Validation Passed
fix(bamsec))This issue is well-structured and ready for work according to the Issue-First Protocol.
mlgitdev commentedon Dec 2, 2026
🚀 Resolution In Progress
A fix for this issue has been implemented and submitted in Pull Request #82 (
v2.12.1).fix/audit-remediation-67.bamsec-results-bodyinweb/js/news.jsso.bamsec-search-inputstays mounted with preserved focus and cursor position across keystrokes. Verified live in Chrome CDP (sameDomNode: true, focusedAfter: true).compileallclean, 84/84 unit tests passing (includingtests/test_audit_fixes.py), and live Chrome CDP verification passed.This issue will automatically close upon PR #82 review and merge into
main.