bigskysoftware / bigskysoftware/idiomorph
Value needs to be able to be checked against current value during morph
- Dominant language
- HTML
- Stars
- 1.1k
- Forks
- 57
- Avg merge
- 9h 58m
- Merged PRs (30d)
- 4
Description
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](
https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements#responding_to_attribute_changes), `(attrName:string, oldValue:T, newValue:T, targetEl:Element, incomingEl:Element) ` seems to be a decent signature for the callback.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.