Skip to content

Commit 9cfe46b

Browse files
committed
fix: correct selector references in calculations
1 parent 22e3d5a commit 9cfe46b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<input class="class1" key="total" id="id1" value="12" />
1616
<input class="class1" key="total" id="id2" value="13" />
1717

18-
<input id="te" calculate="($selctor #id1) + ($selctor #id2)" />
19-
<input calculate="($selctor [key='total']) + 1" />
20-
<h1 calculate="($selctor [key='total']) + ($selctor .class1)">sum</h1>
18+
<input id="te" calculate="($document #id1) + ($document #id2)" />
19+
<input calculate="($document [key='total']) + 1" />
20+
<h1 calculate="($document [key='total']) + ($document .class1)">sum</h1>
2121

2222
<!--<script src="../dist/CoCreate-calculate.js"></script>-->
2323
<script src="https://dev.CoCreate.app/dist/CoCreate.js"></script>

0 commit comments

Comments
 (0)