Skip to content

Commit 429d27e

Browse files
committed
Merge branch 'main' into support-role-type-input
2 parents 2aac67f + 91b9dc3 commit 429d27e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/events.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,14 @@ function setNativeValue(element, value) {
111111
Object.getOwnPropertyDescriptor(prototype, 'value') || {}
112112
if (prototypeValueSetter && valueSetter !== prototypeValueSetter) {
113113
prototypeValueSetter.call(element, value)
114-
} /* istanbul ignore next (I don't want to bother) */ else if (valueSetter) {
115-
valueSetter.call(element, value)
116114
} else {
117-
throw new Error('The given element does not have a value setter')
115+
/* istanbul ignore if */
116+
// eslint-disable-next-line no-lonely-if -- Can't be ignored by istanbul otherwise
117+
if (valueSetter) {
118+
valueSetter.call(element, value)
119+
} else {
120+
throw new Error('The given element does not have a value setter')
121+
}
118122
}
119123
}
120124

0 commit comments

Comments
 (0)