Replies: 2 comments
-
validateAmount(el) {
let isValid = checkValid();
if (!isValid) {
htmxApi.trigger('#123', 'htmx:abort');
}
}``` |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hey, this seems a bit convoluted to me to use request abortion in this case. Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use htmx:abort for invalid inputs which seems to work, but when the input is valid the XHR request is cancelled. Perhaps I'm presuming something about the HTMX logic??? Any help or guidance would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions