-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anonymous div
is wrapping Dashboard
#3550
Comments
I'm using it with Svelte. |
It's happening with the React component as well. |
I'm not sure if I can get rid of it because AFAIK it can't be a React fragment as we need it as a ref: return h('div', {
ref: (container) => {
this.container = container
},
...this.validProps,
}) But I could easily add an id or class if that helps. However I'm not sure what problem you're facing, because the |
In Svelte you don't need any new |
Yea, so I'm not into the uppy source code, but having a class on that div, would at least make it possible to target it via css, which probably would be of great help. |
You can do it already now. What I don't need is that useless div. |
Of course you can but it could get unnecessary complicated, but I also agree that we don't need that div. |
I'm not an expert on Svelte, but AFAIK this doesn't differ from my React example. We need a ref for the plugin to attach to. <div bind:this={container} /> Perhaps it is possible to retrieve |
If you find a way to remove that div, this would be awesome! But if not I think at least it should get a class, so it is easier to target as wells as not having just one random div wrapping it, because initially I was just wondering where the div is coming from. |
This comment was marked as spam.
This comment was marked as spam.
Added CSS class for the wrapper container in #3692 for React and Svelte, other integrations to follow. |
Closing this as we can't get rid of the div but we did add a class on it. If you feel differently, feel free to discuss and we could reopen if necessary. |
As reported here too by @natschz the
Dashboard
component is wrapped in anonymous<div>
hard to to target with css selectors and this situation make hard to change properties like100%
.Can we please avoid that unuseful
div
?The text was updated successfully, but these errors were encountered: