Skip to content

Morphing deletes element in extremely specific situation involving LastPass extension and no whitespace between elements #60

Closed
@pedantic-git

Description

@pedantic-git

Hi developers - thanks for such an amazing library!

This has been discussed extensively on the original issue hotwired/turbo#1291 so I'll not repeat it all here.

There is a combination of conditions involving the Lastpass browser extension (which messes with shadow roots) and a form field with no whitespace between the label and the div containing the field that results in the field itself being removed from the DOM by Idiomorph when the page is re-rendered (the input changes significantly in this use case because it is showing an error state).

All thanks to @4lllex for narrowing down the issue and providing reproduction steps in hotwired/turbo#1291 (comment) . I can work around it by adding whitespace in the specific place where it fails, but I think it's still an idiomorph bug so thought I should report it upstream.

Do you need any more information from me to debug this? And thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions