Alexander Petros
4b890ce72d
Run linter on the tests too
2023-12-21 13:22:10 -05:00
Carson Gross
3be4202e5e
add support for dashes in hx-on* attributes
2023-12-07 15:15:10 -07: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
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
Mark Gibson
94623d1129
Fix hx-on/hx-on:* to suppress evaluation if allowEval is false ( #1682 )
...
* Added more tests for allowEval=false
* Wrap hx-on event handlers in maybeEval
* Create and cache hx-on function on first event trigger.
2023-08-24 12:11:00 -06:00
Alexander Petros
adef1166e2
Add support for hx-on:* attribute ( #1489 )
...
* Add support for hx-on:* attribute
* Use shorter XPath selector
* Add support for "hx-on::" shorthand
* Add note about mixing the two forms of `hx-on`
2023-06-13 09:23:16 -06:00