Skip to content

[BUG] Initiative Input Cleared On Visible Token List Changes #1760

Description

@Craftidore

Describe the bug

If a player is in the middle of typing in their initiative slot, and the GM shows or hides a creature's initiative, the text input for the Player is cleared.

To Reproduce
Steps to reproduce the behavior:

  1. Add a character to initiative and a non-character to initiative
  2. Player begins typing in their initiative for a character they control, but does not unfocus the text input
  3. The GM sets the non-character to "show" (or hide if it was already shown).
  4. Whatever had been typed in the input is cleared.

Expected behavior

The input shouldn't clear whatever was typed.

Screenshots

N/A

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Vivaldi
  • PlanarAlly Version: not-quite-latest dev (960f529)

Additional context

Found this while hunting for #1755 repro, hasn't actually caused an issue in my games before, as I don't show monster initiative slots until their turn shows up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions