Skip to content

Commit 865a4e4

Browse files
committed
wip
1 parent 7ce2be8 commit 865a4e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/alpinejs/src/directives/x-model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ directive('model', (el, { modifiers, expression }, { effect, cleanup }) => {
5959
// we'll listen for the change event instead of the "input" event.
6060
let event = (el.tagName.toLowerCase() === 'select')
6161
|| ['checkbox', 'radio'].includes(el.type)
62-
|| modifiers.includes('lazy')
62+
|| (modifiers.includes('lazy') || modifiers.includes('change'))
6363
? 'change' : 'input'
6464

6565
// We only want to register the event listener when we're not cloning, since the

packages/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alpinejs/docs",
3-
"version": "3.15.4-revision.1",
3+
"version": "3.15.4",
44
"description": "The documentation for Alpine",
55
"author": "Caleb Porzio",
66
"license": "MIT"

0 commit comments

Comments
 (0)