Skip to content

Commit be76e64

Browse files
committed
Cast element in fill-in to get around TS not correctly resolving the element type through the promise chain
1 parent abc894d commit be76e64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • addon/addon-test-support/@ember/test-helpers/dom

addon/addon-test-support/@ember/test-helpers/dom/fill-in.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function fillIn(target: Target, text: string): Promise<void> {
7474
} else if (isContentEditable(element)) {
7575
return __focus__(element).then(() => {
7676
element.innerHTML = text;
77-
return element;
77+
return element as Element;
7878
});
7979
} else {
8080
throw new Error(

0 commit comments

Comments
 (0)