Skip to content
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

Input and textarea fields are always getting trimmed #14702

Closed
martijn-dev opened this issue Jul 27, 2022 · 0 comments · Fixed by #14709
Closed

Input and textarea fields are always getting trimmed #14702

martijn-dev opened this issue Jul 27, 2022 · 0 comments · Fixed by #14709
Assignees
Labels

Comments

@martijn-dev
Copy link

martijn-dev commented Jul 27, 2022

Describe the Bug

When you type content in an input or textarea field with some leading or trailing spaces, your content gets trimmed after saving.

I'm aware that there's a trim option on the interfaces, but this option is turned off.

When I use the raw value editor this behaviour does not occure.

To Reproduce

  • Create an input or textarea field.
  • Type some content in the field with leading and/or trailing spaces.
  • Save.
  • All your leading/trailing spaces are gone.

What version of Directus are you using?

9.14.5 (checked it on 9.10.0, and here it is as well)

What version of Node.js are you using?

v16.6.1

What database are you using?

Postgres 13.3

What browser are you using?

Chrome

How are you deploying Directus?

running locally

@martijn-dev martijn-dev changed the title Input and textarea field are always getting trimmed Input and textarea fields are always getting trimmed Jul 27, 2022
@br41nslug br41nslug self-assigned this Jul 28, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants