Carson Gross
b4e6c5cbd5
hx-on
attribute
2023-03-31 06:44:01 -06:00
Carson Gross
f84029badb
fix https://github.com/bigskysoftware/htmx/issues/1264
...
update target to result of `beforeSwap` event
2023-02-24 11:01:53 -07:00
Carson Gross
704739d1f0
fix https://github.com/bigskysoftware/htmx/issues/1236
...
handle single quotes in ids properly by escaping them in selectors
2023-02-16 11:11:50 -07:00
Carson Gross
666c6aa8e5
support clicking on elements within a button element as well as directly on the element itself.
...
based on https://github.com/bigskysoftware/htmx/pull/1168
2023-01-06 14:18:00 -07:00
Ben Beecher
546fba2776
Hotfix for swapping fields that don't support setSelectionRange ( #1187 )
...
* Hotfix for swapping fields that don't support setSelectionRange
* Fix test
2023-01-04 08:54:38 -07:00
Thomas Eizinger
899c454580
Actually pass original event on to htmx:configRequest
( #1156 )
...
* Add failing test
* Use all arguments of `handler`
2022-12-17 07:19:39 -06:00
Billy Keyes
8520f6f374
Fix handling of repeated empty inputs ( #1144 )
...
Native form handling submits repeated empty inputs as an array with an
empty value for each input, but htmx would only submit the first
non-empty input and any following inputs. Fix the value collection code
so that it correctly distinguishes between empty values and new inputs.
2022-12-02 09:35:59 -07:00
Carson Gross
84d8e33deb
fix tests
2022-10-30 13:49:29 -06:00
Carson Gross
d16cf3c9bb
hook to allow for custom confirmation dialogs, etc.
2022-10-30 13:14:28 -06:00
Carson Gross
35d5fc8086
Merge branch 'feature_update_on_attribute_changes' into dev
...
# Conflicts:
# CHANGELOG.md
# www/essays/hypermedia-driven-applications.md
# www/reference.md
2022-10-02 16:29:10 -06:00
Carson Gross
1dbb22b682
allow re-initialization if attributes change
2022-10-02 13:17:23 -06:00
Carson Gross
4d1164c8e0
support the hx-validate
attribute, when set to true an individual input will validate itself.
2022-08-23 19:04:46 -06:00
mayowa
9eef783011
Implement HX-Reswap ( #949 )
...
* Document optional delay parameter for addClass, removeClass, remove
* Implement HX-Reswap (resolves #933 )
2022-06-29 15:37:28 -06:00
Ben Beecher
d51d8cb74c
Adding support for client side redirects - HX-Location ( #832 )
...
* Adding support for client side boosted redirects
* First pass at hx-boost-redirect
* Fixing some small documentation issues
* Rename boost-redirect to Location
2022-05-27 11:39:23 -06:00
Adam Boaler
f302ad6fdd
Skip validation if form submit button has formnovalidate attribute ( #826 )
...
awesome, thank you for adding a test too!
2022-02-17 06:15:23 -07:00
carson
d9bf50182d
Merge remote-tracking branch 'origin/dev' into dev
2022-02-04 11:14:35 -07:00
Ben Beecher
9ec6ffa930
Adding swap argument for ajax calls ( #769 )
...
* Adding swap argument for ajax calls
* Adding documentation
* Removing ;'s
2022-02-04 11:01:51 -07:00
Ben Beecher
326a9df916
renaming event and adding test around aborting swap
2022-01-15 13:44:24 -05:00
Ben Beecher
3152c77688
adding events around oob swaps
2022-01-15 13:27:11 -05:00
carson
c9e758f7ec
add regression for https://github.com/bigskysoftware/htmx/issues/768
2022-01-14 15:26:02 -07:00
carson
dd34d9d218
more release cleanup
2021-11-21 06:44:20 -07:00
carson
dc016ba4f9
small test fix
2021-11-16 12:42:36 -07:00
Johan Vosloo
d9cded6440
Update events.js
2021-11-15 18:24:13 +01:00
carson
2d9c49a8a1
support an HX-Retarget
header to retarget the content to another element
2021-11-12 16:58:27 -07:00
carson
e7e7b1cb37
Only cancel clicks and submits
...
fixes https://github.com/bigskysoftware/htmx/issues/588
2021-11-12 16:43:28 -07:00
carson
e67e5ba41b
bump version & disambiguate non-swaps from errors
2021-10-30 08:19:54 -06:00
carson
d2c5dd8603
respect the enctype
declaration on boosted forms
...
fixes https://github.com/bigskysoftware/htmx/issues/605
2021-09-29 07:36:59 -06:00
carson
60a6717994
support <script src='...'></script>
tags
2021-09-28 05:17:20 -06:00
carson
6821e366a8
remove redundant test
2021-09-27 07:55:54 -06:00
carson
14e87fc623
Merge remote-tracking branch 'origin/dev' into dev
2021-09-27 07:50:41 -06:00
carson
9254d7fa5a
extend htmx:beforeSwap
event to allow much more flexible handling of response codes and content swapping
2021-09-27 07:50:31 -06:00
carson
e3cb9b591a
support unset
to, well, unset attributes
2021-09-19 16:41:31 -06:00
Ben Croker
700bc3ae58
Improved wording of tests
2021-09-06 22:50:34 +02:00
Ben Croker
21ec1094ec
Add better title tests
2021-09-05 14:08:44 +02:00
carson
c9936b4a35
Merge remote-tracking branch 'origin/dev' into dev
2021-07-06 09:57:51 -06:00
Matthew Molloy
e283e476b5
added regression test for image maps
2021-07-06 00:52:55 +09:00
carson
6d1a86836e
track last clicked button using focus to include value in submission
2021-07-01 13:54:11 -06:00
carson
444660158f
regression for hyperscript htmx:afterRequest form reset integration
2021-06-14 09:46:55 -06:00
carson
49405727d5
script tags eval in the global scope
2021-05-25 09:11:37 -06:00
carson
dd8ce0fe7a
1.4 release prep
2021-05-24 09:34:17 -06:00
carson
1d52b23fed
support a htmx.config.useTemplateFragements
option to use <template>
tags to process server content for more flexibility (e.g. oob content alongside table elements)
2021-05-19 10:55:16 -06:00
carson
bdefbd4fec
title tags must come before any svg tags to update the title
...
fixes https://github.com/bigskysoftware/htmx/issues/459
2021-05-17 11:39:22 -06:00
carson
91d677e60d
change to hx-disable
2021-04-04 10:08:28 -06:00
carson
0488f233ae
bump version + disable-htmx
security feature
2021-04-04 04:03:52 -06:00
carson
1fca7dbb70
dispatch events by HX-Trigger-After-*
on body if the element is no long in the DOM
...
fixes https://github.com/bigskysoftware/htmx/issues/418
2021-03-25 12:42:33 -06:00
carson
b42b0b1dfe
fix test
2021-03-25 12:36:27 -06:00
carson
6503e29832
add regression test for https://github.com/bigskysoftware/htmx/issues/427
2021-03-20 19:58:47 -06:00
carson
e82219cc0d
IE fixes
2021-03-09 08:54:16 -07:00
carson
b54d6e57d3
Improve API
2021-03-06 06:50:56 -07:00
carson
835436a99b
Multiple trigger issue - fix https://github.com/bigskysoftware/htmx/issues/392 and https://github.com/bigskysoftware/htmx/issues/390
...
Mark handling by element, rather than by event
introduce `consume` keyword on trigger to allow for preventing it from bubbling to parent
2021-02-27 20:01:39 -07:00