Skip to content

Input field states do not update correctly when that input is inside a "with tooltip:" #683

@daoslies

Description

@daoslies

The following input field does not update state correctly. Only doing so if the user presses enter. (should also update on exit)

exact_text_match, set_exact_text_match = solara.use_state("")

with solara.Tooltip("Exact text matching (case insensitive)"):
solara.InputText("Text", value=exact_text_match, on_value=set_exact_text_match)

--

Without the tooltip the state updates as anticipated:

solara.InputText("Text", value=exact_text_match, on_value=set_exact_text_match)

--

With continuous update the state updates as anticipated:

with solara.Tooltip("Exact text matching (case insensitive)"):
solara.InputText("Text", value=exact_text_match, on_value=set_exact_text_match, continuous_update=True)

--

So there is a reasonable work around with continuous update, but having a tooltip shouldn't then require a continuous update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions