Skip to content

Typing too quickly undone by response #100

Closed
@grantjenks

Description

@grantjenks

Love where this project is headed! I came here from Flask-Meld which also seems to be running with the idea.

Small UX issue I noticed on the search auto-complete demo for state names. If I type really quickly on my phone the input changes and undoes my typing.

Haven’t looked yet in a debugger but my hypothesis is that typing quickly fires a request for each keystroke. Some of the responses then return after I’ve typed more characters. Since the DOM is being used for internal state, the old state gets echoed back by the first few requests and stomps on the new state.

Not sure what the best fix is. Maybe the responses should be discarded unless it corresponds to the latest request? That seems right for input elements but maybe not for others.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions