-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Issue when using BindableLayout and Entry/Editor with special characters #19954
Comments
I have the same issue in .NET 8 only in iOS, when setting the text on an 'Editor' via a view model binding property. I do have some '\n' and '\r' values in the text for formatting. This is a showstopper for moving to Maui.
|
I can consistently reproduce this issue when I enter double dash "--" into the Editor on iOS, save it to the db, and then return back to the page with an Editor... and boom, crash. Looks to me as double dash is the problem for the iOS to read and interpret. |
I was able to fix the issue by replacing '\n' and '\r\n' values with '\r' before setting the text in the editor |
Actually this fixed the crash only on the simulator not the actual phone - not sure what the difference is |
Found that it was because of a "--" that did not work on some iOS devices as @MichaelShapiro mentioned |
@jyotsnar @ppereira-serviceonsites a possible fix here :) #20584 |
Using net8.0-ios... This is currently halting my port to MAUI from going to production. It is very weird as the only way I can reliably reproduce it is this:
high level app UI>>>: List page with drill down to detail page.
---updated this to simplify after what I found:
To replicate follow this:
Looking at the call stack below... it seems to occur on a UITextView... drilling in...
YOU ARE NOT GOING TO BELIEVE THIS...
my field is populated from a DB and it has a double dash -- in it...
SOO... after all this... it seems it is definitely a result of having some special characters in a field... in combination with having previously brought up a keyboard/Picker/ any type of iOS native dialog
P.S.> I tested Char(10) and Char(13) and no issues with them... I don't know how many other types of special character combinations exist...
regardless... this needs to be fixed.
Originally posted by @ppereira-serviceonsites in #15937 (comment)
The text was updated successfully, but these errors were encountered: