Not clear black glass

Hello to all! I began to study and apply simple glass material to any object.
It has a black color, like a black hole … when I run the render, the glass turns out right. This problem is only in the viewport.

Many (all?) 3rd party renderers suffer from this - the OpenGL options for the viewport are mostly undocumented, thus the visual feedback of 3rd party materials is limited.
It helps to set transparent objects to X-Ray, though.

Thank you very much! This partially solved the problem.
If anyone knows any other options, please write.
Maybe it’s worth informing the developers about this?