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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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