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

Forms: Add multiline input #4942

Merged
merged 8 commits into from May 10, 2023

Conversation

dennisreimann
Copy link
Member

Up to now we don't have a way to accept multiline input values via the forms. The input type text strips the newlines and replaces them with whitespace, so there wasn't even a way to solve #4941 correctly.

This add the textarea form provider and modifies the PosData partial, so that it properly displays multiline values.

Closes #4941.

@dennisreimann dennisreimann requested a review from Kukks May 2, 2023 09:29
BTCPayServer/Views/Shared/PosData.cshtml Outdated Show resolved Hide resolved
@dstrukt dstrukt self-requested a review May 4, 2023 18:22
Copy link
Member

@dstrukt dstrukt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

At least visually / functionally.

@dennisreimann
Copy link
Member Author

@Kukks Your feedback has been addressed. Can we merge it so that I can use the textarea in #4695?

@Kukks Kukks merged commit 2c26b77 into btcpayserver:master May 10, 2023
1 of 4 checks passed
@dennisreimann dennisreimann deleted the form-multiline-input branch May 10, 2023 09:14
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.

None yet

4 participants