Skip to content

Root Ventures init & prompt occur twice on initial page load #61

@unkrich

Description

@unkrich

The addition of the event listener before page load causes the resizeListener to fire which results in a user experience of the init and prompt commands re-running (see picture). Running on Chrome.

image

Simplest, if slightly inelegant solution is to simply wrap it and wait for the page load.

  window.on('load', () => {
    window.addEventListener("resize", term.resizeListener);
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions