File tree Expand file tree Collapse file tree 2 files changed +11
-21
lines changed
Expand file tree Collapse file tree 2 files changed +11
-21
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change @@ -112,8 +112,6 @@ export function flushAndStopDeferringMutations() {
112112}
113113
114114function onMutate ( mutations ) {
115- console . log ( mutations ) ;
116-
117115 if ( isCollecting ) {
118116 deferredMutations = deferredMutations . concat ( mutations )
119117
You can’t perform that action at this time.
0 commit comments