AlexMiniApps/angular-code-input

Trim whitespace before paste in digit code input

Closed this issue · 3 comments

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.

@JStein2311 Sorry for the delay, It is fixed, please check the latest release.

Works now as expected, thank you very much for the quick fix.