Closed Fak3 closed 1 week ago
Hey, I'm not able to reproduce this. I'm I missing something is this pen? https://codepen.io/imacrayon/pen/QWePqee
Hey, I'm not able to reproduce this. I'm I missing something is this pen? https://codepen.io/imacrayon/pen/QWePqee
In your example the bug occurs if you change target to 'mylist sync' - i.e also list a target with x-sync attribute. It is pointless, if i understand right, but in previous versions it worked correctly. Now it silently fails.
Yeah, targeting the synced element would be redundant, but I want to support it just in case. Sorry, changing the target still seems to work for me though, I updated the pen: https://codepen.io/imacrayon/pen/QWePqee
Ah, a side issue that i tried to solve specifying multiple targets is that I want to set different target for $ajax()
call which returns an error response. Currently it is not possible, is it correct? I can only do this via x-target.error
element attribute which is ignored by $ajax call.
Yeah, targeting the synced element would be redundant, but I want to support it just in case. Sorry, changing the target still seems to work for me though, I updated the pen: https://codepen.io/imacrayon/pen/QWePqee
Remove the mock route and watch network tab in dev console - it does not send any request
The call to
silently does nothing, no http requests is sent. When i change argument to
sync: false
, it works correctly.Alpine ajax version: https://cdn.jsdelivr.net/npm/@imacrayon/alpine-ajax@0.10.4/dist/cdn.min.js Previously tested working version: 0.9.0