Skip to content

Cockpit poll refresh destroys open forms #10

@Knarr-Forseti

Description

@Knarr-Forseti

Problem

The 60-second setInterval poll calls render functions that rebuild the DOM via innerHTML. Any text the user typed in an open form is lost.

Fix

Guard pattern — skip poll refresh when a form is active:

if (activeTab === 'wants' && document.getElementById('want-form')?.style.display !== 'none') return;

Apply to all tabs with input forms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogNot planned for near-term sprints

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions