- bug/minor: events: ignore blur event after keypress has been handled. fix #11
- upgrade devDependencies
- Upgrade devDependencies to address CVE-2024-4068. Note that this does not impact production code, given that this project has no direct dependencies.
- Add
onCancel
option to give a function to run when a Cancel action is triggered. fix #13
- Allow returning a
Promise<boolean>
withonEdit
- Fix the type of
input
fromfun
oronEdit
toHTMLInputElement|HTMLSelectElement
- Create a new instance of Malle for each element (PR #8). This allows opening multiple inputs at the same time. fix #4
- Add
onEscape
option to set behavior of Escape keypress (fix #6) - Previous releases 2.4.0 and 2.4.1 were incorrect in terms of tags/versions
- Add
returnedValueIsTrustedHtml
so the function used on original element isinnerHTML
instead of the saferinnerText
.
- Add
color
,date
,time
input types.
- Add
after
hook, triggered after replacement of element.
- The
fun
function now expects aPromise<string>
as return value
- Switch eslint-plugin-node (unmaintained) to eslint-plugin-n
- Minor typings changes
- Add missing definitions file
- Upgrade dependencies
- Allow
selectOptions
to be a Promise - Add options
selectOptionsValueKey
andselectOptionsTextKey
to customize the keys to use for value/text in generated options - Automatically select the correct option in a select input if original text is the same as option's text
- Allow
SelectOptions
to have different keys
- Fix lint issue
- Add
requireDiff
option (defaults to true) to avoid callingfun
if input is same as previous value.
- Add
inputValue
option to specify the value of the input in case we want something else than the innerText of the element
- Add
datetime-local
input type - Add testing with
jest
- Add server docker image
- Add
placeholder
option
- Add
onEdit
option - Prevent default behavior of form on submit