From 4f942a10f3bc339bd2b2371a8e8998f5d579ac03 Mon Sep 17 00:00:00 2001 From: Philipp Fritsche Date: Tue, 19 Oct 2021 19:18:00 +0000 Subject: [PATCH] fix istanbul ignore see kentcdodds/kcd-scripts#218 --- src/utils/edit/fireInputEvent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/edit/fireInputEvent.ts b/src/utils/edit/fireInputEvent.ts index 8943d44e..7e7bcce0 100644 --- a/src/utils/edit/fireInputEvent.ts +++ b/src/utils/edit/fireInputEvent.ts @@ -21,7 +21,7 @@ export function fireInputEvent( // apply the changes before firing the input event, so that input handlers can access the altered dom and selection if (isContentEditable(element)) { applyNative(element, 'textContent', newValue) - } /* istanbul ignore else */ else if ( + } else /* istanbul ignore else */ if ( isElementType(element, ['input', 'textarea']) ) { setUIValue(element, newValue)