Sam Cook
225d8d8cac
Add missing config settings to type declarations in dist/htmx.d.ts ( #1936 )
...
Add missing config settings to type declarations in dist/htmx.d.ts
2023-10-31 16:25:08 -06:00
phpfan72
3540283347
Add hx-target-error attribute to response-targets extension ( #1929 )
...
* Update response-targets.js
Add hx-target-error logic
* Update response-targets.md
add documentation and fix typo
2023-10-31 16:24:43 -06:00
Oli
ff45076a24
Clear cache when historyCacheSize is set to 0 ( #1222 )
...
* Update htmx.js
* Purge history cache early if it should not exist
---------
Co-authored-by: Alexander Oliver Mader <AlexanderOliver.Mader@bosch.com>
2023-10-26 15:01:58 -06:00
Raphaël Piccolin
fdd2570ac8
fix: prevent nodeData.onHandlers overwrite ( #1894 )
...
* fix: prevent nodeData.onHandlers() overwrite
* fix: improved type safety
* test: hx-on handler cleanup
* style: wording
* chore: extra line
2023-10-26 14:45:46 -06:00
matiboy
712ee759f1
Fix confirmed
being ignored in htmx:confirm event ( #1610 )
...
* Current behavior testing
Testing current library behavior
* Test should remove correct handler
* Add question in htmx:confirm event detail
* Allow skipping window.confirm
* Additional test without hx-confirm value
* Wrap htmx.off in finally
* More correct assertion in case of no calls to confirm
* Remove erroneously added formatting
* Remove erroneously added formatting
* Documentation, fix loop
---------
Co-authored-by: mat <matt@techspace.asia>
2023-10-26 14:43:41 -06:00
Jyri-Matti Lähteenmäki
1040ace093
Fix: Use getElementById instead of querySelector to work with all valid characters ( #1902 )
...
responseInfo.pathInfo.anchor is assumed to be an ID here, so use getElementById instead of querySelector, which doesn't accept all valid characters (for example parentheses)
2023-10-26 12:00:00 -06:00
Denis Palashevskii
a679244c40
Fix websocket polling trigger ( #1903 )
...
fix websocket polling trigger
2023-10-26 11:54:24 -06:00
EliasPrescott
0718daa3ac
Fix: form submission of email inputs with multiple
attribute ( #1917 )
...
fixing multiple email input values
2023-10-26 11:53:58 -06:00
Ricky Tobing
c7f9dcb682
Documentation - Added link to https://javascript.info/keyboard-events ( #1919 )
2023-10-24 12:40:40 -04:00
Jason Jōb
142b711903
Fixed ws and sse references in the docs ( #1908 )
...
fixed ws and sse references in the docs
2023-10-20 13:32:40 -04:00
Ricky Tobing
3849854f25
Fixed indentation/rendering in Modal bootstrap example page ( #1907 )
...
Fixed indentation (tab vs space)
2023-10-20 11:53:43 +02:00
Daniele Teti
b2b3c8f5e0
Added DelphiMVCFramework sample ( #1893 )
2023-10-13 18:44:44 -04:00
Alexander Petros
d26fe4709d
Remove the last of the go code ( #1890 )
...
Update the website tests with the latest tests on master, deleting the
mirrored go code in the process.
2023-10-12 16:01:34 -06:00
Alexander Petros
a66a98b9ed
Fix WS/SSE tests and replace go backend with NodeJS ( #1876 )
...
* Write WS and SSE test backend in node
* Refactor pages so that the URLs work
* Add tab highlighting script
* Fix stream with multiple events
* Fix highlighting on ext links
* Refactor WS code
* Support event trigger tests
* Add some jitter to the intervals
* Delete old go backend
* Update README with new info and credits
* Update top-level README
* Move ws to dev dependencies
* Remove extraneous go server
* Fix misplace comment
2023-10-12 15:54:40 -05:00
Mohamed Haddi
f0ad4690d0
Sortable example fixes ( #1868 )
...
* add missing quotation mark
* make `.htmx-indicator` unsortable
* change cursors to indicate grabbable items
* bug fix:
bug:
when an item is dragged fast enough before the previous request was
completed, dropping after request completion resulted in the addition
of an extra item to the list.
fix:
disable sortable on End event, and re-enable it on htmx:afterSwap.
* add a few inline comments + better naming
2023-10-09 17:28:49 -04:00
Vincent
7274454360
[New feature] selector-less next and previous targets ( #1478 )
...
* nextElementSibling and previousElementSibling target selectors
* Renamed nextElementSibling => next, previousElementSibling => previous
2023-10-06 22:25:03 -06:00
Sascha Woo
4f63581c55
Add new event htmx:beforeHistoryUpdate ( #1573 )
...
* Add missing documentation for htmx:replacedInHistory
* Add new event htmx:beforeHistoryUpdate
2023-10-06 22:22:44 -06:00
Vincent
332e8986ac
Clear lastButtonClicked ref if it was removed from the DOM ( #1785 )
...
Fix #1749 clear lastButtonClicked ref if it was removed from the DOM
2023-10-06 22:13:15 -06:00
André Rouél
76e0ca1216
Fix Handlebars template rendering ( #1836 )
...
Fix Handlebars template rendering (see #801 and #1801 )
Co-authored-by: russ4stall <russ@slashpine.tech>
2023-10-06 22:04:58 -06:00
Sam Dudley
355a4fad65
Ignore formmethod when value is "dialog" ( #1867 )
...
Fixes #1866
2023-10-06 22:04:02 -06:00
Thomas de Queiroz Barros
590fddaf04
Improve request/response documentation in docs.md ( #1839 )
...
* docs+reference: merge Response Headers docs
* docs+reference: merge Request Headers docs
* docs+reference: use true as strings
2023-10-03 16:06:29 -04:00
Elliott Brown
1e5dc7fba7
Fix reference in notes from hx-disable-elts
to hx-disable-elt
( #1838 )
2023-10-01 19:28:28 +02:00
Sören Maschmann
2a34b304e1
Update docs.md ( #1846 )
...
fix: spelling mistake 'docuemnt' in swap-options
2023-10-01 19:26:58 +02:00
Cameron Beck
645f3570cc
Update file-upload.md ( #1847 )
...
Fixing a small typo in the documentation
2023-10-01 19:24:28 +02:00
Cristian Molina
ec126d2e3d
Update Ruby list of server-examples.md ( #1765 )
...
Added htmx from alchemists.io. Works with any web framework. Also added a missing `-`
2023-09-26 12:27:53 -04:00
Lorant Kurthy
49d01f0d47
Add another Elixir example to server-examples.md ( #1814 )
2023-09-25 11:00:29 -04:00
Vincent
05f621822d
[Documentation] Mention no dist push in contribution guidelines ( #1829 )
...
Mention no dist in contribution guidelines
2023-09-25 10:58:09 -04:00
srcerer
6a3f089fa7
Update podcasts.csv ( #1830 )
...
PodRocket by LogRocket
2023-09-25 10:57:30 -04:00
David Harrigan
811a67d3e6
Add another Clojure example ( #1832 )
...
* HTMX to provide user interaction via the UI
* Bootstrap 5.3 for a basic look and feel
* API CRUD functionality
* Login and session handling
* Exception handling
* i18n
* Input validation and more!
-=david=-
2023-09-25 10:57:10 -04:00
Carson Gross
04250d57f4
update SHA
v1.9.6
2023-09-21 17:22:02 -06:00
Carson Gross
618a888087
release docs
2023-09-21 17:21:00 -06:00
Carson Gross
ecd990ee0f
prep release
2023-09-21 17:15:11 -06:00
Carson Gross
d42c3e990d
update CHANGELOG.md for 1.9.6 release
2023-09-21 17:12:57 -06:00
Carson Gross
baf80aed77
remove disable-element extension from the main docs
2023-09-21 16:59:52 -06:00
Carson Gross
a5fd1b7081
make singular to make more consistent w/ other attributes
2023-09-21 16:57:28 -06:00
Carson Gross
aa7ae144b5
Merge branch 'master' into dev
2023-09-21 15:48:07 -06:00
Carson Gross
d2a15ff13f
Merge remote-tracking branch 'origin/dev' into dev
2023-09-21 15:47:59 -06:00
Sascha Woo
32b58c41cb
Add support for event cancellation (preventDefault) in extensions ( #1456 )
...
ext: add support for event cancellation via preventDefault()
2023-09-21 15:44:42 -06:00
Vincent
bb5413dfd2
[Tests] Fix test pipeline timing issues ( #1818 )
...
Fix test pipeline timing issues
2023-09-21 15:43:49 -06:00
Carson Gross
aaee264565
clean up
2023-09-21 12:58:32 -06:00
Carson Gross
6aeca44243
clean up
2023-09-21 12:57:20 -06:00
Carson Gross
ffd4406e30
clean up
2023-09-21 12:56:18 -06:00
Carson Gross
709cfbf9bd
clean up
2023-09-21 12:53:40 -06:00
Carson Gross
6e37e981c6
clean up
2023-09-21 12:49:22 -06:00
Carson Gross
138650412b
Merge remote-tracking branch 'origin/master'
2023-09-21 12:46:50 -06:00
Carson Gross
73bfbb57b2
clean up
2023-09-21 12:46:41 -06:00
Alexander Petros
03b1ebea97
Add version number to test page ( #1813 )
...
Now that we only have a single test page, it's helpful to show which
version of htmx the tests are running against.
2023-09-21 12:11:40 -06:00
Sam Dudley
8da65b94e5
Fix swapError with hx-on and innerHTML swap ( #1371 )
...
Add tests for hx-on can handle being swapped using innerHTML
2023-09-21 12:11:02 -06:00
Jordan Stewart
0ec900c9e3
fix problem with styles at the start of the server content ( #1768 )
...
fix problem with styles at the start of the server content when navigating through history
2023-09-21 12:10:21 -06:00
Jordan Stewart
59f4da1d9d
fix problem with styles at the start of the server content ( #1768 )
...
fix problem with styles at the start of the server content when navigating through history
2023-09-21 12:10:04 -06:00