We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84bf52f commit 91b9dc3Copy full SHA for 91b9dc3
src/events.js
@@ -111,10 +111,14 @@ function setNativeValue(element, value) {
111
Object.getOwnPropertyDescriptor(prototype, 'value') || {}
112
if (prototypeValueSetter && valueSetter !== prototypeValueSetter) {
113
prototypeValueSetter.call(element, value)
114
- } /* istanbul ignore next (I don't want to bother) */ else if (valueSetter) {
115
- valueSetter.call(element, value)
116
} else {
117
- throw new Error('The given element does not have a value setter')
+ /* istanbul ignore if */
+ // eslint-disable-next-line no-lonely-if -- Can't be ignored by istanbul otherwise
+ if (valueSetter) {
118
+ valueSetter.call(element, value)
119
+ } else {
120
+ throw new Error('The given element does not have a value setter')
121
+ }
122
}
123
124
0 commit comments