Skip to content

Suggestion component dont rerender when changing to empty string #4109

@paal2707

Description

@paal2707

Version number

1.1.10

Description of the bug

When trying to change the selected prop on the Suggestion component to an empty array [] the component does not rerender.

Initial view - Input and Suggestion are bound to the same state variable and shows the same value

Image

When changing to empty array in the input, the Suggestion component does not update/rerender.

Image

Steps To Reproduce

  1. Add a Suggestion component and bind to å state
  2. Add an Input component and bind to same state
  3. Set Suggestion component to a default selected value (not empty), and make sure the input corresponds to the default selected value.
  4. Change the input value of the input value to empty.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions