Skip to content

Commit dcf7ebd

Browse files
committed
js in is not what you think it should be
1 parent 602703c commit dcf7ebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/forms/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function xinput<
2424
e => (e.target as HTMLFormElement).value,
2525
streamOps.filter<I>(i => {
2626
let target = i.target as HTMLFormElement
27-
if (target.type in ['submit', 'search', 'button', 'search', 'reset']) {
27+
if (['submit', 'search', 'button', 'search', 'reset'].indexOf(target.type) >= 0) {
2828
return i.type == 'click' && (target as HTMLFormElement).name == name
2929
} else {
3030
return i.type == 'change' && (target as HTMLFormElement).name == name

0 commit comments

Comments
 (0)