From 725bd72be23600c06b7a425ca388df7dfd1c49fa Mon Sep 17 00:00:00 2001 From: carson Date: Wed, 25 Nov 2020 17:41:00 -0700 Subject: [PATCH] changelog prep --- CHANGELOG.md | 13 ++++++++++++- www/examples/file-upload.md | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92190e04..688cf2d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,18 @@ # Changelog -## [1.0.0] - 2020-12-? +## [1.0.1] - 2020-12-? + +* AJAX file upload now correctly fires events, allowing for [a proper progress bar](https://htmx.org/examples/file-upload) +* htmx api functions that expect an element now can accept a string selector instead: + ```js + htmx.on('#form', 'htmx:xhr:progress', function(evt) { + htmx.find('#progress').setAttribute('value', evt.detail.loaded/evt.detail.total * 100) + }); + ``` +* htmx now properly handles the `multiple` attribute on `