fix(iOS): add a check that the href attribute exists in link params - #223
IvanIhnatsiuk wants to merge 4 commits into
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.
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 |
|
Hey @IvanIhnatsiuk, we spoke with @exploIF a little about the changes in here and created a counter-offer PR, see here. |
|
@IvanIhnatsiuk yes, it sounds good to me 🙂 |
|
Then closing the PR and merging the other option, nonetheless thanks for the idea! |
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