This commit is contained in:
Carson Gross 2022-05-12 19:31:32 -06:00
parent caf838f2de
commit 52267f5c74

View File

@ -937,7 +937,7 @@ If you want to register for a given htmx event you can use
```js
document.body.addEventListener('htmx:load', function(evt) {
myJavascriptLib.init(evt.details.elt);
myJavascriptLib.init(evt.detail.elt);
});
```
@ -945,7 +945,7 @@ or, if you would prefer, you can use the following htmx helper:
```javascript
htmx.on("htmx:load", function(evt) {
myJavascriptLib.init(evt.details.elt);
myJavascriptLib.init(evt.detail.elt);
});
```