Carson Gross
bed3d25d2c
fix https://github.com/bigskysoftware/htmx/issues/1259
...
store initial value on init of event listener so first trigger has correct value to compare against
2023-02-23 13:48:05 -07:00
Carson Gross
613f7b61d5
Support an opt-in cache-buster parameter that is sent up with htmx GET requests but that is stripped from the URL pushed into the browser's history
2023-01-08 17:35:07 -07:00
Carson Gross
30f762aa47
Merge branch 'master' into dev
2022-12-06 13:10:58 -07:00
Mark Croxton
4419bc4c90
History cache embargo ( #1113 )
...
* Add hx-history="false" to prevent sensitive or session data entering the localStorage cache
* Correctly get value of hx-history attribute.
* Add test for hx-history attribute.
* Allow history cache to be disabled when multiple `hx-history` attributes are present in a document, and any one of them is set to false.
* Add documentation for `hx-history` attribute.
* Add `hx-history` attribute to reference doc
* Correct the order of the `hx-history` attr in the reference doc.
2022-12-03 16:56:15 -06:00
Denis Palashevskii
36b017bc26
Add events support for WebSockets ( #1126 )
...
* Add events support for WebSockets
* Stop reconnection attempts after element has been removed
* Add tests for websockets
* Hide socker wrapper behind a more strict interface to avoid breaking changes in the future
* Fix legacy websocket tests interfering with new extension tests
* Minor doc fixes
* Add `wsBinaryType` configuration option
2022-12-03 16:53:59 -06:00
Carson Gross
84d8e33deb
fix tests
2022-10-30 13:49:29 -06:00
Carson Gross
85338f4435
fix revealed issue
2022-10-30 13:05:03 -06:00
Carson Gross
9af34ce0e3
fix revealed
bug
2022-10-12 22:46:02 -06:00
Carson Gross
cab3e352eb
Merge remote-tracking branch 'origin/dev' into dev
2022-10-02 16:43:12 -06:00
Carson Gross
c1bf3fa686
keep a count on indicators so we only hide when no requests are in flight
2022-10-02 16:43:00 -06:00
Ben Lenton
c3662ce00d
Allow 'unset' directive for hx-vals and hx-vars ( #1013 )
...
* Allow 'unset' directive for hx-vals and hx-vars
* PR feedback
Co-authored-by: Ben Lenton <benlenton@Bens-MacBook-Air.local>
2022-09-30 14:08:46 -06:00
Carson Gross
892173c355
fix tests
2022-07-11 16:29:40 -06:00
Carson Gross
8b9585f439
flip revealed
to be a normal event
...
this fixes an ugly bug introduced when the trigger logic was pulled out, where the handler of the first revealed element was used over and over again for any future elements that also were revealed. many braincells lost mmm.
2022-07-08 13:54:25 -06:00
Carson Gross
05619c5bec
support the hx-select-oob
attribute
2022-05-31 13:30:34 -06:00
Carson Gross
742f05b9bd
support filters on load
event
...
fixes https://github.com/bigskysoftware/htmx/issues/752
2022-05-13 08:44:41 -06:00
Carson Gross
8290da624b
support next
and previous
(taken from hyperscript) in target expressions
...
fixes https://github.com/bigskysoftware/htmx/issues/814
2022-05-13 08:14:38 -06:00
carson
ce260beb65
enable legacy web socket usage
2022-02-04 19:37:08 -07:00
carson
baa84e7803
get old sse syntax working
2022-02-04 19:16:13 -07:00
carson
051084af49
merge hx-disinherit
and clean up target, etc.
2022-02-04 16:22:09 -07:00
carson
c7f4f360d1
Merge branch 'dev' into pull/753
...
# Conflicts:
# src/htmx.js
2022-02-04 11:16:59 -07:00
alfonsrv
bce4baa20c
Rename hx-inherit to hx-disinherit
2022-01-25 23:27:39 +01:00
carson
f524901d5e
Merge branch 'hx-sync-implementation' into dev
2022-01-25 08:06:34 -07:00
carson
cd6d2b78e2
convert objects to JSON representation
...
fixes https://github.com/bigskysoftware/htmx/issues/772
2022-01-18 20:21:26 -07:00
carson
e6751be2ee
first pass at hx-sync
attribute
2022-01-17 13:11:09 -07:00
carson
2707016f01
support this
in hx-include and hx-indicator
...
fixes
https://github.com/bigskysoftware/htmx/issues/757
https://github.com/bigskysoftware/htmx/issues/767
2022-01-17 10:45:59 -07:00
carson
636fd1b902
fix tests + add test for https://github.com/bigskysoftware/htmx/pull/214
2022-01-14 12:54:28 -07:00
alfonsrv
d025afe49f
hx-inherit tests x documentation
2022-01-06 14:45:12 +01:00
alfonsrv
fb78c826d1
Adding preliminary hx-inherit tests
2022-01-05 23:50:13 +01:00
Arham Jain
5045534d26
added two simple tests for delete mode
2021-11-24 21:23:35 -05:00
1cg
8625a50c59
Merge pull request #643 from msladecek/oob-multiple-targets
...
swap into all elements matching the out-of-band css selector
looks great, thank you!
2021-11-23 13:35:53 -07:00
carson
3ee3739b4b
add tests
2021-11-17 16:19:37 -07:00
msladecek
038821cca8
swap into all elements matching the out-of-band css selector
2021-11-13 12:10:13 +01: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
6754c67b53
Merge branch 'master' into dev
...
# Conflicts:
# README.md
2021-09-23 15:44:27 -06:00
carson
d153929304
include HX-Boosted
header when request is via a boosted element
...
fixes https://github.com/bigskysoftware/htmx/issues/600
2021-09-23 15:43:45 -06:00
Frankie Robertson
4a59263d40
Allow listening to events from:window
2021-08-29 14:07:17 +03:00
carson
a4a9d2d733
support for hx-request
attribute with the following config values:
...
* `timeout` - the request timeout
* `credentials` - send credentials w/ the request
* `noHeaders` - do not send any non-standard headers with the request
We also support the `htmx.config.timeout` configuration value for setting the default timeout
2021-07-07 06:37:40 -06:00
carson
bbf2ae4412
support document
as an extended query selector and plug it in for the from:
clause in triggers
2021-07-06 15:27:51 -06:00
carson
40ed7b0827
allow filters for polling
2021-07-06 10:24:55 -06:00
carson
e15c5d99e3
support a queue
modifier for queueing events in different ways
...
fixes https://github.com/bigskysoftware/htmx/issues/470
2021-05-20 09:07:56 -06:00
carson
9f04b85a9f
tests for hx-trigger
delay
and throttle
modifiers
2021-05-10 09:46:40 -06:00
carson
71179f9db1
manually merge https://github.com/bigskysoftware/htmx/pull/402
2021-03-06 09:43:18 -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
carson
02d637785b
support target
option on hx-trigger
, fixes https://github.com/bigskysoftware/htmx/issues/376#issuecomment-786821075
2021-02-26 15:05:40 -07:00
carson
bb57526712
properly hide indicators when a request targets a parent element
2021-02-23 13:46:10 -07:00
carson
d2b1e10719
all for want of a p: don't blow history out on first successful cache usage :/
...
potentially fixes https://github.com/bigskysoftware/htmx/issues/370
2021-02-18 11:13:15 -07:00
carson
08ba9f8c95
Merge remote-tracking branch 'origin/dev' into dev
2021-02-05 11:41:59 -07:00
carson
1a6f9b1ae5
ignore overridden default swap style for hx-boost
...
fixes https://github.com/bigskysoftware/htmx/issues/342
2021-02-05 11:41:52 -07:00
1cg
8c3ced2573
Merge pull request #350 from andyhorng/hx-preserve-fix
...
Handle preserved element that might not be existing
2021-02-05 11:11:51 -07:00
carson
3c3cd304ae
add test for hx-headers
2021-02-05 11:00:03 -07:00