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 or textarea values are trimmed #1018

Open
viovanov opened this issue Jan 19, 2025 · 2 comments
Open

input or textarea values are trimmed #1018

viovanov opened this issue Jan 19, 2025 · 2 comments

Comments

@viovanov
Copy link

This happens because the Text value is set as an attribute

https://github.com/maxence-charriere/go-app/blob/master/pkg/app/attribute.go#L39

@maxence-charriere
Copy link
Owner

maxence-charriere commented Jan 20, 2025

Could you give more context about why is it an issue?

@viovanov
Copy link
Author

@maxence-charriere if I persist some string that has spaces, then I want that state to be available in an input, I won't be able to.

e.g. in my database, I persisted f = 10, I can't ever show that it has spaces either in the beginning or the end

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

No branches or pull requests

2 participants