Closed colincameron closed 2 months ago
The method parameter was missing from the magic method definition, so it was defaulting to POST.
Adding the method parameter allows GET requests to be sent correctly.
Example:
<input type="text" x-model="email" x-on:keyup.debounce="$get('/api/check-email?email=' + email);" @get="emailFound = $event.detail.response.json()" required />
Hey!
Thanks for taking the time to submit a PR for this!
No problem, thanks for merging. Can you push 1.0.4 to npm?
Published!
The method parameter was missing from the magic method definition, so it was defaulting to POST.
Adding the method parameter allows GET requests to be sent correctly.
Example: