docs: fix `this` binding in onClick .then handler with arrow fn
Update the `.then()` handler in the `onClick` attribute to use an arrow function instead of a traditional `function(arg)` expression.
This fixes the `this` binding within the lexical scope, ensuring that `this` is bound to the `button` instead of the `window` and resolving the issue.
Fixes/Closes issue #2257
* Minimize re-rendering of 'bulk update users' table
And use ARIA to announce a summary of the bulk update. By using a
checkbox input to represent the activation status, we don't need to
re-render it when it's changed, because the checkbox itself manages that
state.
Re: #1431
* Improve screen reader pronunciation
`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>
* 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>
* 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
* 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>
* 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