I recently discovered that the CSS I added is causing the preview of select options in my form to disappear. Despite searching online, I have been unable to find a solution to this issue.
Here is the problematic CSS code:
.form-control{
height: 50px;
padding: 20px;
border-radius: 0 10px 0 10px;
}
Removing the above code restores the select option preview as shown below:
With the CSS .form-control:
https://i.sstatic.net/jhMR5.png
Without the CSS .form-control:
https://i.sstatic.net/Y0xOv.png
Here is how it looks without the CSS when an option is selected: https://i.sstatic.net/LZK08.png
In my Django project, I've implemented the form in my HTML template like this:
{{ form | crispy }}
Any assistance on resolving this issue would be highly appreciated!