Skip to content

fix(bamsec): Full-View filings search input destroys itself and loses focus per keystroke #70

Done

Description

@mlgitdev

Description

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

  1. Switch BamSEC layout mode to Sub-Tabs (⊞ Tabs).
  2. Select a ticker with SEC filings (e.g. AAPL) and open the BamSEC Filings sub-tab.
  3. Click the filter search box and type shelf.
  4. 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.

Activity

  1. self-assigned this
    on Dec 2, 2026
  2. added
    bug
    on Dec 2, 2026
  3. github-actions commented on Dec 2, 2026

    @github-actions

    ✅ Issue Validation Passed

    • Conventional Commit title syntax (fix(bamsec))
    • Verified issue type: BUG
    • Required template sections present and filled out

    This issue is well-structured and ready for work according to the Issue-First Protocol.

  4. mlgitdev commented on Dec 2, 2026

    @mlgitdev
    OwnerAuthor

    🚀 Resolution In Progress

    A fix for this issue has been implemented and submitted in Pull Request #82 (v2.12.1).

    • Branch: fix/audit-remediation-67
    • PR URL: fix(core): resolve 15 verified audit issues across UI, API, concurrency, audio, and packaging (v2.12.1) #82
    • 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.

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions