This happened only in material preview. This is because the overlay engine was not considering material preview as using EEVEE.
This happened only in material preview. This is because the overlay engine was not considering material preview as using EEVEE.