So things with image upload get yet more curious.
Sometimes when opening a file dialogue box to upload an image using a form control, I get this error:
selectedText - utilities.js:137:25
TypeError: ancestor is null
const postMenuArea = ancestor.querySelector(".post-menu-area");
<form.Field
@name="upload_url_1"
@title="Upload"
@onSet={{this.handleUpload}}
as |field|
>
<field.Image @type="branding"/>
</form.Field>
This is especially curious because my Form is on a Modal which hasn’t anything to do with Posts.
Everything ends up working, it’s just slightly ugly on the browser console.
Cheers!