fix subtree directive bug that made first input copy value of current active one, if inside loop
This commit is contained in:
parent
42f21181f8
commit
661307c02e
2 changed files with 14 additions and 2 deletions
|
|
@ -1,6 +1,18 @@
|
|||
## Change Log
|
||||
|
||||
[v0.1.16](/mithril/archive/v0.1.6) - maintenance
|
||||
[v0.1.17](/mithril/archive/v0.1.17) - maintenance
|
||||
|
||||
### News:
|
||||
|
||||
- config contexts can now have an `onunload` property for clean up tasks after elements are detached from the document
|
||||
|
||||
### Bug Fixes:
|
||||
|
||||
- fixed a subtree directive bug that happened in inputs inside loops
|
||||
|
||||
---
|
||||
|
||||
[v0.1.16](/mithril/archive/v0.1.16) - maintenance
|
||||
|
||||
### News:
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ Mithril = m = new function app(window) {
|
|||
}
|
||||
function build(parentElement, parentTag, parentCache, parentIndex, data, cached, shouldReattach, index, editable, namespace, configs) {
|
||||
if (data === null || data === undefined) data = ""
|
||||
if (data.subtree === "retain") return
|
||||
if (data.subtree === "retain") return cached
|
||||
|
||||
var cachedType = type.call(cached), dataType = type.call(data)
|
||||
if (cachedType != dataType) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue