Skip to content

Conversation

@myieye
Copy link
Collaborator

@myieye myieye commented Jun 28, 2023

Description

Multi-texts were changed to textarea elements at some point, in order to support line wrapping. However, that also allows them to support line-breaks. There seemed to be some logic for values that are supposed to be single-line, but line breaks were not being removed, so this fixes that.

Additionally, I've added a simple log to see what the sample rate is for recordings on my phone. For some reason, I can't record audio when I access the app on my laptop from my phone, but I can when I access it on languageforge.org 🤷.

@myieye myieye added the bug An existing problem with our app in production label Jun 28, 2023
@github-actions
Copy link

Unit Test Results

362 tests   362 ✔️  20s ⏱️
  37 suites      0 💤
    1 files        0

Results for commit aaf4f5b.

@myieye myieye force-pushed the bug/remove-new-lines-from-multitext branch from aaf4f5b to 09e79ec Compare June 28, 2023 13:39
@myieye myieye merged commit 6a676af into develop Jun 28, 2023
@myieye myieye deleted the bug/remove-new-lines-from-multitext branch June 28, 2023 13:39
@alex-larkin
Copy link

Hi there,

Sorry for the late reply. Will this remove or prevent the creation of new lines globally? There are some fields like the Notes fields that should (I think) allow for new lines. For example, some printscreens from my lexicon:

FLEX:
image

LF PWA on Windows:
image

LF on Android:
Screenshot_20230629-102205_Chrome

Screen shots taken just now.

Thanks

@myieye
Copy link
Collaborator Author

myieye commented Jun 29, 2023

@alex-larkin I think it will only affect fields that are 1-line fields in FLEx.
Deploying the app to staging is currently failing for random reasons 😞, so I haven't been able to test this yet, but I will 😃.

@alex-larkin
Copy link

Ok, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An existing problem with our app in production

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants