Rendered react-hot-loader-error-overlay div element ⚛️🔥😭 is overlapped by existing content possibly because of absence of z-index css property.
react-hot-loader-error-overlay div element has the most possible value of z-index property to overlap existing rendered page elements.
Rendered react-hot-loader-error-overlay element is overlapped by existing content.
Mac OS X 10.14.3 (18D109)
Chrome 72.0.3626.121
[email protected]
[email protected]
└── [email protected]
I find the overlay very annoying personally. Not sure why it was added.
z-index prop to the configuration@theKashey I understand, you helped me with that in one of my issues. https://github.com/gaearon/react-hot-loader/issues/1153#issuecomment-455334450
But it was quite an involved change than what I was expecting. I just wished it was turned off by default.
There is a little problem with decision making and collecting user feedback. Basically - I am here a bit alone.
The idea behind error overlay is to reduce __cognitive dissonance__, when you did everything right, and there is no change in a browser, or a blank screen. You like a - _what a heck, table flip, I am out of here!_.
You are expected to notice a problem and update the code - then ErrorOverlay would automatically disappear. Works great with a dual monitor system, or just a single big one.
I am actually using https://github.com/smooth-code/error-overlay-webpack-plugin for error overlays already and it handles hot reload errors quite gracefully, that's why I didn't find this overlay useful. Anyway, I get your point. 👍
@theKashey can this also be incorporated in the next release?
Next release took a place an hour ago, so no 😎
Could you be more concrete about what you actually want to be incorporated? I've lost a track a bit.

Due to no z-index set, it gets overlapped by the other components in the app.
Although I have disabled the overlay, it still used to come on 4.12.0 on first page load, hence I noticed it again.
That issue is fixed in 4.12.1, but still it would be good to fix the z-index for others.
Ok, so that's another bug - I am going to change conditions to display it, so it would not appear on page load.
Deal?
no I mean that issue is fixed in 4.12.1, it just needs fix in the z-index
😅Not intentionally.
Most helpful comment
z-indexprop to the configuration