Skip to content

Commit 0e7e75e

Browse files
committed
wip
1 parent 8b6c31c commit 0e7e75e

File tree

2 files changed

+11
-21
lines changed

2 files changed

+11
-21
lines changed

index.html

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,17 @@
1111
<!-- <script src="//cdn.tailwindcss.com"></script> -->
1212
<!-- <script src="//cdn.tailwindcss.com"></script> -->
1313

14-
<script>
15-
let count = 0;
16-
document.addEventListener("alpine:init", () => {
17-
Alpine.directive("test", (el, _, { cleanup }) => {
18-
el.textContent = "Initialized";
19-
cleanup(() => {
20-
el.textContent = "Cleaned up";
21-
});
22-
// Alpine.nextTick(() => {
23-
// el.parentNode.replaceChildren(el);
24-
// })
25-
});
26-
});
27-
</script>
28-
<div x-data>
29-
<div x-ref="anchor"></div>
30-
31-
<div x-ref="target" class="bg-red-300 w-32 h-32" x-test></div>
14+
<div x-data x-sort>
15+
<div x-sort:item >foo</div>
16+
<div >foo</div>
17+
<div x-sort:item >foo</div>
18+
</div>
3219

33-
<button @click="$refs.anchor.before($refs.target)">Move</button>
20+
<div x-data="{ val: true }"
21+
>
22+
<input type="text" x-model.boolean="val">
23+
<input type="checkbox" x-model.boolean="val">
24+
<input type="radio" name="foo" value="true" x-model.boolean="val">
25+
<input type="radio" name="foo" value="false" x-model.boolean="val">
3426
</div>
3527
</html>

packages/alpinejs/src/mutation.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ export function flushAndStopDeferringMutations() {
112112
}
113113

114114
function onMutate(mutations) {
115-
console.log(mutations);
116-
117115
if (isCollecting) {
118116
deferredMutations = deferredMutations.concat(mutations)
119117

0 commit comments

Comments
 (0)