Sitelet https://github.com/AlexMiniApps/angular-code-input/issues/23
Skip to content

Trim whitespace before paste in digit code input #23

Description

@JStein2311

Currently, if somebody copied a code and has accidental whitespace, nothing will be copied when the input is a digit-only input.

I would suggest that on paste, depending if the input is digit-only, whitespace in front and after will be trimmed.

Example:
Clipboard value is " 123 ", before trying to paste the text into the input field trim the data to be "123" and then try, if it is allowed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions