- Notifications
You must be signed in to change notification settings - Fork42
fix(dom): Hyperlinks are overridden when rendered after Paragraph#98
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 ourterms of service andprivacy 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?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
orhun left a comment
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.
This looks good, however I don't understand how this is currently fixing the issue.
It would be really nice if you can explain the problem and solution in detail. This might also lead to a cleaner solution :)
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
orhun commentedJun 10, 2025
Thanks for the changes@Emivvvvv! Can you remind me how to test this again? Maybe we should update one of the existing examples to hit this case (so that it's clear that it works). What do you think? Also did this work for you locally for your website? |
Uh oh!
There was an error while loading.Please reload this page.
fixes:#97
This update refactors
update_gridto detect when a line’s hyperlink structure changes (hyperlink is added or removed) and triggers a full re-render of that line. A newrerender_linemethod rebuilds the DOM with correct anchor elements for hyperlink groups. If no hyperlink changes are detected, only the modified cells are updated as before.