Skip to content

v7 - Input stealing focus when interacting with caption element #599

Closed
@mattfysh

Description

@mattfysh

I have a caption element where I've converted the month and year to dropdowns, so users can quickly move across years/decades as needed.

However, the latest version re-applies focus to the input element if clicking inside the container - which causes the dropdown to briefly open and then immediately close. The offending lines:

if (this.clickedInside) {
this.blurTimeout = setTimeout(() => this.input.focus(), 0);
}

Is there any way to disable this behaviour?

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