-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Selection area is not visible on position:fixed/absolute elements. #123
Comments
Could you please provide a CodeSandbox or JSFiddle? It'll help me to take a closer look at your case :) In your case maybe |
So from what i can see, if the fixed positioned element has a z-index more than 1 it does not work. And unfortunately, in my case, the element must have a higher z-index than 1. |
Okay, I see - the problem is that you only apply the Unfortunately it's currently also not possible to access the clipping element (I'll make that a feature as well!). As a hacky workaround (which only works for the version you're currently using because of minification) you could manually apply a zIndex: https://codesandbox.io/s/laughing-platform-hbshc |
Available in v3.0.0-beta.2, this requires an upgrade to |
@simonwep I have upgraded to latest, but does not look like it is working. I think the custom classname does not get attached to the div element. https://codesandbox.io/s/boring-gagarin-i833v?file=/src/App.js |
Huh, that is weird - well, I'll take a look at it later today and publish a new beta version if required :) Thank you for trying out the beta though! |
@simonwep No problems 👍 Sounds great! |
Fix deep-assign utility Fixes regression in #123
Fix deep-assign utility Fixes regression in #123
Fix deep-assign utility Fixes regression in #123
I just published v3.0.0-beta.6 - should be fixed there. |
@simonwep Thanks now it works! |
Ah god dammit 😔 what happened? Normally the wrappers shouldn't be affected by config updates... I'll look into it later. |
@simonwep i think the error i noticed came from the deepAssign utility function. |
Ah, allright - yeah that should be fixed with the most recent version - thank you :) |
I have problems showing the selection area when the element has a fixed or absolute position value. (Probably because of z-index?)
I guess a solution could be to add an optional classname to the div element that is created, so i can bump the z-index. Tweaking the z-index on the
.selection-area
class does not work, so i think it should be possible to tweak the style on the parent div that is created.Does it make sense?
Br Alex
The text was updated successfully, but these errors were encountered: