Comment by christophilus 1 hour ago I haven’t used it with htmx, but DOM morphing seems like it’s probably a good solution to this.https://v1.htmx.org/extensions/morphdom-swap/ 1 comment christophilus Reply rubyfruit 1 minute ago 1) Don't like that you need a 3rd party library for something so basic2) It looks like they have the same problem anyway: https://github.com/patrick-steele-idem/morphdom/issues/261This issue is reporting the same kind of thing - text selection is lost on re-render, even using this morphdom library.
rubyfruit 1 minute ago 1) Don't like that you need a 3rd party library for something so basic2) It looks like they have the same problem anyway: https://github.com/patrick-steele-idem/morphdom/issues/261This issue is reporting the same kind of thing - text selection is lost on re-render, even using this morphdom library.
1) Don't like that you need a 3rd party library for something so basic
2) It looks like they have the same problem anyway: https://github.com/patrick-steele-idem/morphdom/issues/261
This issue is reporting the same kind of thing - text selection is lost on re-render, even using this morphdom library.