Skip to content

Value needs to be able to be checked against current value during morph #132

Description

@delaneyj

In Datastar you can do 2 way binding of inputs/select/textarea/etc. The incoming morphs may not have there value's set and idiomorph is treating that as a clearing of the value.

Per a conversation with @botandrose we need more detail in attributeChangedCallback. Specifically access to the target/incomings element, attrtibute name and possibly values if they are already in memory.

Taking inspiration from Web Components, (attrName:string, oldValue:T, newValue:T, targetEl:Element, incomingEl:Element) seems to be a decent signature for the callback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions