Skip to content

fix(DateField): fix pasting string from clipboard with duplicate spaces #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 22, 2025

Conversation

ieromanov
Copy link
Contributor

@ieromanov ieromanov commented Apr 17, 2025

Problem: The user copies the date from the excel and inserts it into the field. Sometimes data is copied with additional issues between date and time, sometimes with a space before/after the value. If the string does not match the format, then the format is ignored here

Screen.Recording.2025-04-17.at.16.12.19.mov

Solution: trim strings and remove duplicate spaces

@ieromanov ieromanov force-pushed the fix/date-field-clipboard-paste branch from db1bb7c to 4dc9419 Compare April 17, 2025 16:01
@korvin89 korvin89 changed the title fix: paste string from clipboard with duplicate spaces fix(DateField): fix pasting string from clipboard with duplicate spaces Apr 22, 2025
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@korvin89 korvin89 merged commit e51759f into gravity-ui:main Apr 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants