You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additionally, it seems after the Dashboard component mounts, ImageEditor is able to target the Dashboard. So you get 2 instances of the editor, one inside the dashboard, and another at the bottom of the screen.
I tried passing in Dashboard from @uppy/dashboard like the example shows, but then I get an error that the target is not a Plugin.
It's very possible that I am doing something wrong, but the fact that 2.3.0 works just fine leads me to believe this may be a regression.
Side note - happy to help with this, just not sure where to start.
The text was updated successfully, but these errors were encountered:
I tried updating everything to latest, and the problem came back. Here is a screen shot of the DOM
I tried debugging and it appears image-editor is registering 2X. The first time, it doesn't see the Dashboard, so it defaults the target to body, which results in the creation of a div. The second time I see it register, it does appear to have the target set to the instance of the Dashboard.
Initial checklist
Link to runnable example
n/a
Steps to reproduce
Expected behavior
Image editor should register itself and mount to the Dashboard (this was working as late as 2.3.0)
Actual behavior
ImageEditor initially defaults the target to
body
and as a result, creates a newdiv
.https://github.com/transloadit/uppy/blob/main/packages/%40uppy/core/src/UIPlugin.ts#L93
Additionally, it seems after the
Dashboard
component mounts, ImageEditor is able to target the Dashboard. So you get 2 instances of the editor, one inside the dashboard, and another at the bottom of the screen.I tried passing in
Dashboard
from@uppy/dashboard
like the example shows, but then I get an error that the target is not a Plugin.It's very possible that I am doing something wrong, but the fact that 2.3.0 works just fine leads me to believe this may be a regression.
Side note - happy to help with this, just not sure where to start.
The text was updated successfully, but these errors were encountered: