Skip to content

Force cursor after prefix - if user tries to place cursor before or between prefix characters? #2

@bongobongo

Description

@bongobongo

I have added a prefix like this: "< " to the input field.
When I click in the field I can place the cursor before the less than operator, and between the less than operator and the space after the operator (which is also a part of my prefix).

It would be nice if InputAffix forced the cursor to be placed, just after the specified prefix - if user tries to place the cursor between the prefix characters, or in front of the prefix.

Is it possible to see a fix for this issue in future updates?

Anyway, I really like InputAffix, and I will use it as it is. But I also believe that for the end-user, it would be more intuitive if InputAffix did not allow placing the cursor where I previously mentioned. For those in need for a suffix, I believe a solution would benefit those as well.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions