-
Notifications
You must be signed in to change notification settings - Fork 18
fix(iOS): add a check that the href attribute exists in link params #223
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
base: main
Are you sure you want to change the base?
fix(iOS): add a check that the href attribute exists in link params #223
Conversation
|
Thanks for the PR, looks promising! I'll need to check for places where url might be taken for a granted in link and will come back to you |
|
And one more thing @IvanIhnatsiuk; if you want the emitted html to not have the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, almost there.
I think we don't want to emit html with empty urls, see #223 (comment) - if the url is empty, don't add the href attribute.
|
@szydlovsky, from my point of view, if we generate a link, then the href attribute should always be there (ideally). This bug is addressed to only to prevent a crash when we get the link from the initial value or manually call setValue with HTML content |
|
Okay @IvanIhnatsiuk this sounds reasonable. Let me test things out for the last time on Monday and we can proceed with the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks and works good. Just this tiny one cosmetic change and we can merge it.
|
Hey @IvanIhnatsiuk, we spoke with @exploIF a little about the changes in here and created a counter-offer PR, see here. |
Description:
If we pass a default value on iOS, like:
Then we get a crash because we're trying to get a range of href that doesn't exist
What's changed:
Screenshots:
Before:
Screen.Recording.2025-11-03.at.17.01.30.mov
After:
Screen.Recording.2025-11-03.at.17.00.41.mov
Crash stack trace:
crash.txt