21 Commits

Author SHA1 Message Date
Mia
8d0338ade8
Fix the Django example in www/content/examples/confirm.md (#2062) 2023-11-30 15:57:30 -05:00
Max von Webel
0b0887c23e
Fixed typo in examples (#2002)
lower case "i" in UIKit
2023-11-16 15:22:09 +01:00
Alexander Petros
2e5f813c91
Replace keyup with input event (#1952)
`keyup` only works with a keyboard, and ignores pasting with a right click or programmatically updating the value with JS. 

`input` is a better event for detecting any "inputs to the input".

Co-authored-by: Sam Eaton <sam@eaton.party>
2023-11-08 22:33:26 +01:00
Carson Gross
5cd5f927ba Merge branch 'master' into dev 2023-11-02 15:12:37 -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
Ricky Tobing
c7f9dcb682
Documentation - Added link to https://javascript.info/keyboard-events (#1919) 2023-10-24 12:40: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
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
Cameron Beck
645f3570cc
Update file-upload.md (#1847)
Fixing a small typo in the documentation
2023-10-01 19:24:28 +02:00
vsyaco
8e4f69a1d3
[Documentation] Small typo fix in modal-bootstrap.md response example (#1804)
Documentation: fixing small typo in modal-bootstrap.md
2023-09-19 16:40:05 -04:00
gbourant
4af437a4e1
Add example of how to structure binary-data forms without data loss (#1670)
* prevent binary data loss by restructuring forms.

* Update www/content/docs.md

Co-authored-by: Denis Palashevskii <20725046+Renerick@users.noreply.github.com>

* moved the example to example directory

* Updated documentation based on feedback

---------

Co-authored-by: gbourant <root@gbourant.com>
Co-authored-by: Denis Palashevskii <20725046+Renerick@users.noreply.github.com>
2023-09-01 14:42:14 -04:00
Dominik Kozaczko
193cb67393
Cleaner Bootstrap 5 modals example. (#1111)
* Cleaner Bootstrap 5 example.

* Update window id

* Update close button

* Got it working
2023-08-01 14:41:17 -05:00
Viktor Szépe
0a471dc4fb
Fix typos in www/ (#1579) 2023-07-17 10:26:27 -04:00
Carson Gross
2edb023f20 Merge branch 'master' into dev
# Conflicts:
#	www/content/docs.md
2023-07-14 13:52:14 -06:00
Carson Gross
05a1f8cba7 Merge remote-tracking branch 'origin/dev' into dev 2023-07-14 13:50:31 -06:00
Thomas M. Schöller
e6fc3246df
Fix paths mentioned in description text (#1551)
The paths in the description did not match with the paths in the example code.
2023-07-10 15:54:00 -06:00
Denis Palashevskii
18aa2470a0
fix accesibility and keyboard navigation issues in examples (#1433)
* fix accesibility and keyboard navigation issues in examples

* fix review comments

* remove redundant aria attributes, remove redundant autofocus

* rework progress bar demo's accesibility

* rework tabs HATEOS example to be more ARIA compliant

* rework tabs _hyperscript example to be ARIA compliant
2023-06-30 11:28:54 -05:00
Alexander Petros
be1cb533ed
Include note about 204 in hx-delete docs and examples (#1475) 2023-06-07 14:58:32 -06:00
Niels Dequeker
a48302373b
Fix typo in custom modal example (#1429) 2023-05-23 09:44:00 -05:00
Carson Gross
47bdec5fbc Merge branch 'gohugo' into dev
# Conflicts:
#	www/attributes/hx-target.md
#	www/content/docs.md
#	www/content/events.md
#	www/content/examples/animations.md
#	www/reference.md
#	www/static/test/index.html
2023-04-06 11:04:36 -06:00
Daniel J. Summers
f690d92834 Replace www directory 2023-03-18 11:29:38 -04:00