Ridiculously high z index when using suspense fallback component #1287
Unanswered
hichemfantar
asked this question in
Q&A
Replies: 1 comment
-
you can set the z-index range, look into the docs for html. anyway, html is meant for annotations. i would much rather use tunnel-rat or simple state updates to inform a parent dom component about loading states instead of using drei/html. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
three
version: 0.148.0@react-three/fiber
version: 8.11.0@react-three/drei
version: 9.56.20node
version: 16npm
(oryarn
) version: 8Problem description:
Recently added a loader to show progress % while the canvas is loading.
This however added an extremely high z-index value which broke my ui because I have a dialog that displays on top of the canvas. the dialog now has a lower z value than the canvas.
This is the value that's being applied after adding the suspense progress loader
z-index: 8388635;
Relevant code:
A preview of the z values being applied to the canvas and the loader progress div:
no z index when i remove the suspense loader:
Suggested solution:
the z-index attribute is removed when I remove the suspense loader component.
Also why is the z-index so high?
fixed this for now by increasing my dialog z to be larger than the one produced by react three fiber, but I'm trying to understand why the z values being generated are so high.
Beta Was this translation helpful? Give feedback.
All reactions